diff --git a/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate b/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate index 50b1dc3..bdc65db 100644 Binary files a/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate and b/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sora/Utils/CustomPlayer/CustomPlayer.swift b/Sora/Utils/CustomPlayer/CustomPlayer.swift index 5ed7488..61525c0 100644 --- a/Sora/Utils/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/CustomPlayer/CustomPlayer.swift @@ -120,10 +120,19 @@ struct CustomMediaPlayer: View { VStack { Spacer() VStack { - Spacer() - HStack { + HStack(alignment: .bottom) { + if showControls { + VStack(alignment: .leading) { + Text("Episode \(episodeNumber)") + .font(.subheadline) + .foregroundColor(.gray) + Text(title) + .font(.headline) + .foregroundColor(.white) + } + } Spacer() - if duration - currentTime <= duration * 0.06 { + if duration - currentTime <= duration * 0.07 { Button(action: { player.pause() presentationMode.wrappedValue.dismiss() @@ -233,7 +242,6 @@ struct CustomMediaPlayer: View { } } ) - .frame(height: 45) .padding(.bottom, 10) } } @@ -292,4 +300,4 @@ struct CustomMediaPlayer: View { UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)") } } -} \ No newline at end of file +}