Skip to content

Commit

Permalink
Lower os versions, add guards (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte authored Apr 20, 2024
1 parent 526225a commit bf488f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// swift-tools-version:5.6
// swift-tools-version: 5.9

import PackageDescription

let package = Package(
name: "ColorToolbox",
platforms: [
.iOS(.v14),
.tvOS(.v14),
.macOS(.v11),
.watchOS(.v7)
.iOS(.v13),
.tvOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.visionOS(.v1),
.macCatalyst(.v13),
],
products: [
.library(
Expand Down
1 change: 1 addition & 0 deletions Sources/ColorToolbox/SwiftUI/Color+ColorToolbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#if canImport(SwiftUI)
import SwiftUI

@available(macOS 11.0, iOS 14.0, tvOS 14.0, macCatalyst 14.0, watchOS 7.0, *)
extension Color {

/// Relative luminance of the color.
Expand Down
1 change: 1 addition & 0 deletions Tests/ColorToolboxTests/SwiftUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import XCTest
import SwiftUI
import ColorToolbox

@available(macOS 11.0, iOS 14.0, tvOS 14.0, macCatalyst 14.0, watchOS 6.0, *)
final class SwiftUITests: XCTestCase {

func test_fromHex() {
Expand Down

0 comments on commit bf488f2

Please sign in to comment.