This commit is contained in:
Francesco 2025-04-25 21:10:41 +02:00
parent 8dbc7e6591
commit 448e3a0947

View file

@ -58,6 +58,8 @@ struct MediaInfoView: View {
@State private var activeFetchID: UUID? = nil @State private var activeFetchID: UUID? = nil
@Environment(\.dismiss) private var dismiss @Environment(\.dismiss) private var dismiss
@State private var orientationChanged: Bool = false
private var isGroupedBySeasons: Bool { private var isGroupedBySeasons: Bool {
return groupedEpisodes().count > 1 return groupedEpisodes().count > 1
} }
@ -450,6 +452,9 @@ struct MediaInfoView: View {
} }
selectedRange = 0..<episodeChunkSize selectedRange = 0..<episodeChunkSize
} }
.onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in
orientationChanged.toggle()
}
if showStreamLoadingView { if showStreamLoadingView {
VStack(spacing: 16) { VStack(spacing: 16) {
@ -468,7 +473,6 @@ struct MediaInfoView: View {
.padding(.vertical, 8) .padding(.vertical, 8)
.padding(.horizontal, 24) .padding(.horizontal, 24)
.background( .background(
// Hex #FF705E
Color(red: 1.0, green: 112/255.0, blue: 94/255.0) Color(red: 1.0, green: 112/255.0, blue: 94/255.0)
) )
.foregroundColor(.white) .foregroundColor(.white)