Bump up supported macOS version to 11

This commit is contained in:
1024jp 2022-09-23 23:15:52 +09:00
parent 2b7d07d879
commit 10b1cf9660
5 changed files with 13 additions and 7 deletions

View File

@ -1,10 +1,19 @@
CHANGELOG
===========
2.9.0
-----------
### mod
- Bump up supported macOS version to 11.
2.8.0
-----------
## new
### new
- Add KeywordColor struct.

View File

@ -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"]),

View File

@ -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

View File

@ -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) {

View File

@ -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.