diff --git a/Blankie/UI/Views/AboutView.swift b/Blankie/UI/Views/AboutView.swift index e757f3a..40e7b7f 100644 --- a/Blankie/UI/Views/AboutView.swift +++ b/Blankie/UI/Views/AboutView.swift @@ -61,7 +61,7 @@ struct AboutView: View { HStack(spacing: 4) { Image(systemName: "globe") Link("blankie.rest", destination: URL(string: "https://blankie.rest")!) - .handCursor() + .handCursor() } Link(destination: URL(string: "https://github.com/codybrom/blankie")!) { @@ -84,7 +84,7 @@ struct AboutView: View { } .handCursor() - + } .font(.system(size: 12)) @@ -175,7 +175,7 @@ struct AboutView: View { } .foregroundColor(.accentColor) .handCursor() - + Text("•") .foregroundStyle(.secondary) @@ -438,7 +438,7 @@ struct AboutView: View { .onTapGesture { NSWorkspace.shared.open(soundUrl) } - .handCursor() + .handCursor() } else { // Without link case Text(credit.soundName) @@ -476,12 +476,11 @@ struct AboutView: View { struct HandCursorOnHover: ViewModifier { func body(content: Content) -> some View { #if os(macOS) - content.onHover { hovering in - if hovering { NSCursor.pointingHand.push() } - else { NSCursor.pop() } - } + content.onHover { hovering in + if hovering { NSCursor.pointingHand.push() } else { NSCursor.pop() } + } #else - content + content #endif } } diff --git a/Blankie/Utils/Extensions/Color+Extension.swift b/Blankie/Utils/Extensions/Color+Extension.swift index 0af8b62..6e6cc83 100644 --- a/Blankie/Utils/Extensions/Color+Extension.swift +++ b/Blankie/Utils/Extensions/Color+Extension.swift @@ -60,9 +60,9 @@ enum AccentColor: CaseIterable { } enum AppearanceMode: String, CaseIterable { - case system = "system" - case light = "light" - case dark = "dark" + case system + case light + case dark var localizedName: String { switch self { diff --git a/BlankieUITests/BlankieUITestsLaunchTests.swift b/BlankieUITests/BlankieUITestsLaunchTests.swift index 190a1b8..f08dd1c 100644 --- a/BlankieUITests/BlankieUITestsLaunchTests.swift +++ b/BlankieUITests/BlankieUITestsLaunchTests.swift @@ -9,25 +9,25 @@ import XCTest final class BlankieUITestsLaunchTests: XCTestCase { - override class var runsForEachTargetApplicationUIConfiguration: Bool { - true - } + override static var runsForEachTargetApplicationUIConfiguration: Bool { + true + } - override func setUpWithError() throws { - continueAfterFailure = false - } + override func setUpWithError() throws { + continueAfterFailure = false + } - @MainActor - func testLaunch() throws { - let app = XCUIApplication() - app.launch() + @MainActor + func testLaunch() throws { + let app = XCUIApplication() + app.launch() - // Insert steps here to perform after app launch but before taking a screenshot, - // such as logging into a test account or navigating somewhere in the app + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app - let attachment = XCTAttachment(screenshot: app.screenshot()) - attachment.name = "Launch Screen" - attachment.lifetime = .keepAlways - add(attachment) - } + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } }