From 7507f9ee571d41b50e40631f0c4a48ea4a0f9013 Mon Sep 17 00:00:00 2001 From: eonist <30n1st@gmail.com> Date: Sun, 15 Oct 2023 15:17:20 +0200 Subject: [PATCH] Lint --- .../DarkMode/UIApplication+Extension.swift | 2 +- Sources/DarkMode/UIImageAsset+Extension.swift | 2 +- .../UITraitCollection+Extension.swift | 2 +- .../DarkMode/UIViewController+Extension.swift | 2 +- Sources/DarkMode/UIWindow+Extension.swift | 2 +- Sources/DarkMode/UserDefault+Extension.swift | 4 ++-- Sources/DarkMode/common/Apperance.swift | 2 +- Sources/DarkMode/common/Color.swift | 2 +- Sources/DarkMode/common/Swatches.swift | 24 +++++++++---------- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Sources/DarkMode/UIApplication+Extension.swift b/Sources/DarkMode/UIApplication+Extension.swift index 1bae5f2..0c34574 100644 --- a/Sources/DarkMode/UIApplication+Extension.swift +++ b/Sources/DarkMode/UIApplication+Extension.swift @@ -29,4 +29,4 @@ extension UIApplication { } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/UIImageAsset+Extension.swift b/Sources/DarkMode/UIImageAsset+Extension.swift index 674f0fb..6f13b0a 100644 --- a/Sources/DarkMode/UIImageAsset+Extension.swift +++ b/Sources/DarkMode/UIImageAsset+Extension.swift @@ -50,4 +50,4 @@ extension UIImageAsset { } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/UITraitCollection+Extension.swift b/Sources/DarkMode/UITraitCollection+Extension.swift index 6f1d958..cc597a2 100644 --- a/Sources/DarkMode/UITraitCollection+Extension.swift +++ b/Sources/DarkMode/UITraitCollection+Extension.swift @@ -26,4 +26,4 @@ extension UITraitCollection { } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/UIViewController+Extension.swift b/Sources/DarkMode/UIViewController+Extension.swift index c2b7667..663b3d6 100644 --- a/Sources/DarkMode/UIViewController+Extension.swift +++ b/Sources/DarkMode/UIViewController+Extension.swift @@ -18,4 +18,4 @@ extension UIViewController { } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/UIWindow+Extension.swift b/Sources/DarkMode/UIWindow+Extension.swift index c907938..b1cb25e 100644 --- a/Sources/DarkMode/UIWindow+Extension.swift +++ b/Sources/DarkMode/UIWindow+Extension.swift @@ -23,4 +23,4 @@ extension Array where Element: UIWindow { } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/UserDefault+Extension.swift b/Sources/DarkMode/UserDefault+Extension.swift index 50c6ee5..7c7a86c 100644 --- a/Sources/DarkMode/UserDefault+Extension.swift +++ b/Sources/DarkMode/UserDefault+Extension.swift @@ -12,11 +12,11 @@ extension UserDefaults { // Fetch the raw value of the UI style from UserDefaults using the function name as the key. // If no value is found, default to 'unspecified'. UIUserInterfaceStyle(rawValue: integer(forKey: #function)) ?? .unspecified - } + } set { // Save the raw value of the new UI style to UserDefaults using the function name as the key. set(newValue.rawValue, forKey: #function) } } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/common/Apperance.swift b/Sources/DarkMode/common/Apperance.swift index af6118d..7675edd 100644 --- a/Sources/DarkMode/common/Apperance.swift +++ b/Sources/DarkMode/common/Apperance.swift @@ -74,4 +74,4 @@ public final class ChangeDetector { extension Notification.Name { static let AppleInterfaceThemeChangedNotification = Notification.Name("AppleInterfaceThemeChangedNotification") } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/common/Color.swift b/Sources/DarkMode/common/Color.swift index 91d030d..268c09e 100644 --- a/Sources/DarkMode/common/Color.swift +++ b/Sources/DarkMode/common/Color.swift @@ -27,4 +27,4 @@ extension NSColor { self.init(srgbRed: red, green: green, blue: blue, alpha: alpha) } } -#endif \ No newline at end of file +#endif diff --git a/Sources/DarkMode/common/Swatches.swift b/Sources/DarkMode/common/Swatches.swift index 38a904d..f36688f 100644 --- a/Sources/DarkMode/common/Swatches.swift +++ b/Sources/DarkMode/common/Swatches.swift @@ -12,27 +12,27 @@ extension Color { * Represents a light yellow color with hex value #F9EFB1. */ static let xF9EFB1 = #colorLiteral( - red: 0.9764705882352941, // red component - green: 0.9372549019607843, // green component - blue: 0.6941176470588235, // blue component + red: 0.976_470_588_235_294_1, // red component + green: 0.937_254_901_960_784_3, // green component + blue: 0.694_117_647_058_823_5, // blue component alpha: 1 // alpha component ) /** * Represents a gray color with hex value #6A6A6A. */ static let x6A6A6A = #colorLiteral( - red: 0.4156862745098039, // red component - green: 0.4156862745098039, // green component - blue: 0.4156862745098039, // blue component + red: 0.415_686_274_509_803_9, // red component + green: 0.415_686_274_509_803_9, // green component + blue: 0.415_686_274_509_803_9, // blue component alpha: 1 // alpha component ) /** * Represents a near white color with hex value #FEFEFE. */ static let xFEFEFE = #colorLiteral( - red: 0.9960784313725490, // red component - green: 0.9960784313725490, // green component - blue: 0.9960784313725490, // blue component + red: 0.996_078_431_372_549_0, // red component + green: 0.996_078_431_372_549_0, // green component + blue: 0.996_078_431_372_549_0, // blue component alpha: 1 // alpha component ) @@ -40,9 +40,9 @@ extension Color { * Represents a dark gray color with hex value #202020. */ static let x202020 = #colorLiteral( - red: 0.1254901960784314, // red component - green: 0.1254901960784314, // green component - blue: 0.1254901960784314, // blue component + red: 0.125_490_196_078_431_4, // red component + green: 0.125_490_196_078_431_4, // green component + blue: 0.125_490_196_078_431_4, // blue component alpha: 1 // alpha component ) }