From 10b1cf96605fb4790db9b58d34696aa23b8f1837 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Fri, 23 Sep 2022 23:15:52 +0900 Subject: [PATCH] Bump up supported macOS version to 11 --- CHANGELOG.md | 11 ++++++++++- Package.swift | 4 ++-- README.md | 2 +- Sources/ColorCode/SwiftUI/Color+ColorCode.swift | 2 -- Sources/ColorCode/SwiftUI/Color+HSL.swift | 1 - 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3442e5d..d7bad27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,19 @@ CHANGELOG =========== +2.9.0 +----------- + +### mod + +- Bump up supported macOS version to 11. + + + 2.8.0 ----------- -## new +### new - Add KeywordColor struct. diff --git a/Package.swift b/Package.swift index 34de66b..3aa63b4 100644 --- a/Package.swift +++ b/Package.swift @@ -1,10 +1,10 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.5 import PackageDescription let package = Package( name: "ColorCode", platforms: [ - .macOS(.v10_10), + .macOS(.v11), ], products: [ .library(name: "ColorCode", targets: ["ColorCode"]), diff --git a/README.md b/README.md index 74a3896..7edd311 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ WFColorCode __WFColorCode__ is a NSColor extension that allows creating NSColor/SwiftUI.Color instance from a CSS color code string, or color code string from an NSColor/SwiftUI.Color instance. It also adds the ability to handle HSL color space. -* __Requirements__: OS X 10.10 or later +* __Requirements__: OS X 11 or later diff --git a/Sources/ColorCode/SwiftUI/Color+ColorCode.swift b/Sources/ColorCode/SwiftUI/Color+ColorCode.swift index f300014..0872f56 100644 --- a/Sources/ColorCode/SwiftUI/Color+ColorCode.swift +++ b/Sources/ColorCode/SwiftUI/Color+ColorCode.swift @@ -30,7 +30,6 @@ import SwiftUI /// This extension on Color allows creating Color instance from a CSS color code string. -@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public extension Color { /// Initialize with the given color code. Or returns `nil` if color code is invalid. @@ -87,7 +86,6 @@ public extension Color { -@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) extension Color { init(components: ColorComponents) { diff --git a/Sources/ColorCode/SwiftUI/Color+HSL.swift b/Sources/ColorCode/SwiftUI/Color+HSL.swift index ebd2d41..fcacd3b 100644 --- a/Sources/ColorCode/SwiftUI/Color+HSL.swift +++ b/Sources/ColorCode/SwiftUI/Color+HSL.swift @@ -30,7 +30,6 @@ import SwiftUI /// This extension on Color adds the ability to handle HSL color space. -@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public extension Color { /// Creates and returns a `Color` using the given opacity and HSL components.