Codestyle fixes

This commit is contained in:
Arkadiusz Fal 2023-05-07 21:45:18 +02:00
parent 3779b7ed1f
commit f45001da78
11 changed files with 14 additions and 14 deletions

View File

@ -166,7 +166,7 @@ struct ChannelPlaylistView: View {
#if os(iOS)
.navigationBarTrailing
#else
.automatic
.automatic
#endif
}

View File

@ -291,7 +291,7 @@ enum PlayerSidebarSetting: String, CaseIterable, Defaults.Serializable {
#if os(macOS)
.always
#else
.whenFits
.whenFits
#endif
}
}

View File

@ -62,7 +62,7 @@ struct PlayerControls: View {
}
}
#else
.offset(y: 2)
.offset(y: 2)
#endif
VStack {

View File

@ -44,7 +44,7 @@ struct VideoPlayerSizeModifier: ViewModifier {
#if os(iOS)
fullScreen ? .fill : .fit
#else
.fit
.fit
#endif
}

View File

@ -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
}

View File

@ -107,7 +107,7 @@ struct PlaylistVideosView: View {
#if os(iOS)
.navigationBarTrailing
#else
.automatic
.automatic
#endif
}
}

View File

@ -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()
}

View File

@ -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
}

View File

@ -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 }

View File

@ -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 }

View File

@ -61,7 +61,7 @@ struct YatteeApp: App {
}
)
#else
.onReceive(
.onReceive(
NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)
) { _ in
player.handleEnterForeground()