From aebead1c9d73b24a51298956afb92ae947580b25 Mon Sep 17 00:00:00 2001 From: Wesley de Groot Date: Thu, 22 Aug 2024 22:19:08 +0200 Subject: [PATCH] Swiftlint fixes --- Package.swift | 10 ++++++++-- Sources/SwiftUI-Color/SwiftUI_Color.swift | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 8393b80..253fa5f 100644 --- a/Package.swift +++ b/Package.swift @@ -5,11 +5,17 @@ import PackageDescription let package = Package( name: "SwiftUI-Color", + platforms: [ + .iOS(.v13), + .macOS(.v10_15), + .watchOS(.v6), + .tvOS(.v13) + ], products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "SwiftUI-Color", - targets: ["SwiftUI-Color"]), + targets: ["SwiftUI-Color"]) ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. @@ -18,6 +24,6 @@ let package = Package( name: "SwiftUI-Color"), .testTarget( name: "SwiftUI-ColorTests", - dependencies: ["SwiftUI-Color"]), + dependencies: ["SwiftUI-Color"]) ] ) diff --git a/Sources/SwiftUI-Color/SwiftUI_Color.swift b/Sources/SwiftUI-Color/SwiftUI_Color.swift index 95d02b1..02fd909 100644 --- a/Sources/SwiftUI-Color/SwiftUI_Color.swift +++ b/Sources/SwiftUI-Color/SwiftUI_Color.swift @@ -233,7 +233,7 @@ extension NSAppearance { } extension NSColor { - func init(light: NSColor, dark: NSColor, named: String = "DynamicColor") -> NSColor { + func `init`(light: NSColor, dark: NSColor, named: String = "DynamicColor") -> NSColor { return NSColor( name: named, dynamicProvider: { traits in