Skip to content

Commit

Permalink
Merge pull request #5 from stonko1994/feature/watchos-support
Browse files Browse the repository at this point in the history
Add watchOS support
  • Loading branch information
stonko1994 authored Nov 27, 2024
2 parents 0bc5a84 + bd0045a commit d6ff329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "PowerPack",
platforms: [
.iOS(.v14)
.iOS(.v14), .watchOS(.v9)
],
products: [
.library(
Expand Down
2 changes: 2 additions & 0 deletions Sources/PowerPack/Color+ColorScheme/Color+ColorScheme.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SwiftUIX

#if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
public extension Color {
init(light: Color, dark: Color) {
self.init("CustomColor", bundle: nil)
Expand All @@ -26,3 +27,4 @@ public extension Color {
return Color(resolvedColor)
}
}
#endif

0 comments on commit d6ff329

Please sign in to comment.