Skip to content

Commit

Permalink
Swiftlint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG committed Aug 22, 2024
1 parent 7bf0577 commit aebead1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -18,6 +24,6 @@ let package = Package(
name: "SwiftUI-Color"),
.testTarget(
name: "SwiftUI-ColorTests",
dependencies: ["SwiftUI-Color"]),
dependencies: ["SwiftUI-Color"])
]
)
2 changes: 1 addition & 1 deletion Sources/SwiftUI-Color/SwiftUI_Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aebead1

Please sign in to comment.