diff --git a/Shared/Channels/ChannelPlaylistView.swift b/Shared/Channels/ChannelPlaylistView.swift index 61ee2eb3..c81ff916 100644 --- a/Shared/Channels/ChannelPlaylistView.swift +++ b/Shared/Channels/ChannelPlaylistView.swift @@ -166,7 +166,7 @@ struct ChannelPlaylistView: View { #if os(iOS) .navigationBarTrailing #else - .automatic + .automatic #endif } diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index 297c22a7..4afa7c6a 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -291,7 +291,7 @@ enum PlayerSidebarSetting: String, CaseIterable, Defaults.Serializable { #if os(macOS) .always #else - .whenFits + .whenFits #endif } } diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 74171140..9e64a8c3 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -62,7 +62,7 @@ struct PlayerControls: View { } } #else - .offset(y: 2) + .offset(y: 2) #endif VStack { diff --git a/Shared/Player/VideoPlayerSizeModifier.swift b/Shared/Player/VideoPlayerSizeModifier.swift index ab5d330a..cd4d2fbf 100644 --- a/Shared/Player/VideoPlayerSizeModifier.swift +++ b/Shared/Player/VideoPlayerSizeModifier.swift @@ -44,7 +44,7 @@ struct VideoPlayerSizeModifier: ViewModifier { #if os(iOS) fullScreen ? .fill : .fit #else - .fit + .fit #endif } diff --git a/Shared/Playlists/AddToPlaylistView.swift b/Shared/Playlists/AddToPlaylistView.swift index 1243c614..e0cb6def 100644 --- a/Shared/Playlists/AddToPlaylistView.swift +++ b/Shared/Playlists/AddToPlaylistView.swift @@ -48,7 +48,7 @@ struct AddToPlaylistView: View { #if os(tvOS) 600 #else - .infinity + .infinity #endif } @@ -115,7 +115,7 @@ struct AddToPlaylistView: View { #if os(tvOS) .trailing #else - .center + .center #endif } diff --git a/Shared/Playlists/PlaylistVideosView.swift b/Shared/Playlists/PlaylistVideosView.swift index 4b1556fa..dcf4c037 100644 --- a/Shared/Playlists/PlaylistVideosView.swift +++ b/Shared/Playlists/PlaylistVideosView.swift @@ -107,7 +107,7 @@ struct PlaylistVideosView: View { #if os(iOS) .navigationBarTrailing #else - .automatic + .automatic #endif } } diff --git a/Shared/Playlists/PlaylistsView.swift b/Shared/Playlists/PlaylistsView.swift index db0a7cd3..a9a3afe6 100644 --- a/Shared/Playlists/PlaylistsView.swift +++ b/Shared/Playlists/PlaylistsView.swift @@ -150,7 +150,7 @@ struct PlaylistsView: View { } } #else - .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in + .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in model.load() loadResource() } diff --git a/Shared/Search/SearchView.swift b/Shared/Search/SearchView.swift index 312a8526..d6caf503 100644 --- a/Shared/Search/SearchView.swift +++ b/Shared/Search/SearchView.swift @@ -167,7 +167,7 @@ struct SearchView: View { } } #else - .ignoresSafeArea(.keyboard, edges: .bottom) + .ignoresSafeArea(.keyboard, edges: .bottom) .navigationTitle("Search") #endif #if os(iOS) @@ -260,7 +260,7 @@ struct SearchView: View { #if os(iOS) accounts.app.supportsSearchFilters || favorites.isEnabled ? .bottomBar : .automatic #else - .automatic + .automatic #endif } diff --git a/Shared/Trending/TrendingView.swift b/Shared/Trending/TrendingView.swift index 347d0380..d7baeb3f 100644 --- a/Shared/Trending/TrendingView.swift +++ b/Shared/Trending/TrendingView.swift @@ -79,7 +79,7 @@ struct TrendingView: View { TrendingCountry(selectedCountry: $country) } #else - .sheet(isPresented: $presentingCountrySelection) { + .sheet(isPresented: $presentingCountrySelection) { TrendingCountry(selectedCountry: $country) #if os(macOS) .frame(minWidth: 400, minHeight: 400) @@ -128,7 +128,7 @@ struct TrendingView: View { } } #else - .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in + .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in resource.loadIfNeeded()? .onFailure { self.error = $0 } .onSuccess { _ in self.error = nil } diff --git a/Shared/Views/PopularView.swift b/Shared/Views/PopularView.swift index b3ebcf87..5d361014 100644 --- a/Shared/Views/PopularView.swift +++ b/Shared/Views/PopularView.swift @@ -76,7 +76,7 @@ struct PopularView: View { } } #else - .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in + .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in resource?.loadIfNeeded()? .onFailure { self.error = $0 } .onSuccess { _ in self.error = nil } diff --git a/Shared/YatteeApp.swift b/Shared/YatteeApp.swift index 43b5ccfc..18d3dd10 100644 --- a/Shared/YatteeApp.swift +++ b/Shared/YatteeApp.swift @@ -61,7 +61,7 @@ struct YatteeApp: App { } ) #else - .onReceive( + .onReceive( NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification) ) { _ in player.handleEnterForeground()