From 12786857822f922fe96e5e7fae49df382836cf7b Mon Sep 17 00:00:00 2001 From: d-date Date: Fri, 15 Mar 2024 15:21:09 +0000 Subject: [PATCH] [ci skip] Run swift-format --- .../Sources/ScheduleFeature/Detail.swift | 8 +++--- .../Sources/ScheduleFeature/Schedule.swift | 8 +++--- .../Sources/SponsorFeature/Sponsors.swift | 6 ++--- .../trySwiftFeature/Acknowledgements.swift | 8 +++--- .../Sources/trySwiftFeature/Profile.swift | 8 +++--- .../Sources/trySwiftFeature/trySwift.swift | 26 +++++++++---------- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/MyLibrary/Sources/ScheduleFeature/Detail.swift b/MyLibrary/Sources/ScheduleFeature/Detail.swift index 8379a68..74af7aa 100644 --- a/MyLibrary/Sources/ScheduleFeature/Detail.swift +++ b/MyLibrary/Sources/ScheduleFeature/Detail.swift @@ -39,7 +39,7 @@ public struct ScheduleDetail { public enum Destination { case safari(Safari) } - + @Dependency(\.openURL) var openURL public init() {} @@ -50,10 +50,10 @@ public struct ScheduleDetail { switch action { case let .view(.snsTapped(url)): #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .destination: return .none diff --git a/MyLibrary/Sources/ScheduleFeature/Schedule.swift b/MyLibrary/Sources/ScheduleFeature/Schedule.swift index 0051cae..8786f2e 100644 --- a/MyLibrary/Sources/ScheduleFeature/Schedule.swift +++ b/MyLibrary/Sources/ScheduleFeature/Schedule.swift @@ -88,10 +88,10 @@ public struct Schedule { case .view(.mapItemTapped): let url = URL(string: String(localized: "Guidance URL", bundle: .module))! #if os(iOS) || os(macOS) - state.destination = .guidance(.init(url: url)) - return .none + state.destination = .guidance(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .binding, .path, .destination: return .none @@ -106,7 +106,7 @@ public struct Schedule { public struct ScheduleView: View { @Bindable public var store: StoreOf - + let mapTip: MapTip = .init() public init(store: StoreOf) { diff --git a/MyLibrary/Sources/SponsorFeature/Sponsors.swift b/MyLibrary/Sources/SponsorFeature/Sponsors.swift index c18bf99..c26932f 100644 --- a/MyLibrary/Sources/SponsorFeature/Sponsors.swift +++ b/MyLibrary/Sources/SponsorFeature/Sponsors.swift @@ -45,10 +45,10 @@ public struct SponsorsList { case let .view(.sponsorTapped(sponsor)): guard let url = sponsor.link else { return .none } #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .binding: return .none diff --git a/MyLibrary/Sources/trySwiftFeature/Acknowledgements.swift b/MyLibrary/Sources/trySwiftFeature/Acknowledgements.swift index 308e702..bf41a50 100644 --- a/MyLibrary/Sources/trySwiftFeature/Acknowledgements.swift +++ b/MyLibrary/Sources/trySwiftFeature/Acknowledgements.swift @@ -16,7 +16,7 @@ public struct Acknowledgements { case urlTapped(URL) case safari(PresentationAction) } - + @Dependency(\.openURL) var openURL public var body: some ReducerOf { @@ -24,10 +24,10 @@ public struct Acknowledgements { switch action { case let .urlTapped(url): #if os(iOS) || os(macOS) - state.safari = .init(url: url) - return .none + state.safari = .init(url: url) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .safari: return .none diff --git a/MyLibrary/Sources/trySwiftFeature/Profile.swift b/MyLibrary/Sources/trySwiftFeature/Profile.swift index 3581b3f..723a9c5 100644 --- a/MyLibrary/Sources/trySwiftFeature/Profile.swift +++ b/MyLibrary/Sources/trySwiftFeature/Profile.swift @@ -32,7 +32,7 @@ public struct Profile { } @Dependency(\.openURL) var openURL - + public init() {} public var body: some ReducerOf { @@ -41,10 +41,10 @@ public struct Profile { switch action { case let .view(.snsTapped(url)): #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .destination: return .none diff --git a/MyLibrary/Sources/trySwiftFeature/trySwift.swift b/MyLibrary/Sources/trySwiftFeature/trySwift.swift index ed24440..19e7f40 100644 --- a/MyLibrary/Sources/trySwiftFeature/trySwift.swift +++ b/MyLibrary/Sources/trySwiftFeature/trySwift.swift @@ -40,7 +40,7 @@ public struct TrySwift { public enum Destination { case safari(Safari) } - + @Dependency(\.openURL) var openURL public init() {} @@ -55,18 +55,18 @@ public struct TrySwift { case .view(.codeOfConductTapped): let url = URL(string: String(localized: "Code of Conduct URL", bundle: .module))! #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .view(.privacyPolicyTapped): let url = URL(string: String(localized: "Privacy Policy URL", bundle: .module))! #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .view(.acknowledgementsTapped): state.path.append(.acknowledgements(.init())) @@ -74,18 +74,18 @@ public struct TrySwift { case .view(.eventbriteTapped): let url = URL(string: String(localized: "Eventbrite URL", bundle: .module))! #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case .view(.websiteTapped): let url = URL(string: String(localized: "Website URL", bundle: .module))! #if os(iOS) || os(macOS) - state.destination = .safari(.init(url: url)) - return .none + state.destination = .safari(.init(url: url)) + return .none #elseif os(visionOS) - return .run { _ in await openURL(url) } + return .run { _ in await openURL(url) } #endif case let .path(.element(_, .organizers(.delegate(.organizerTapped(organizer))))): state.path.append(.profile(.init(organizer: organizer)))