fixed label
Some checks are pending
Build and Release IPA / Build IPA (push) Waiting to run

This commit is contained in:
cranci1 2024-12-23 16:31:00 +01:00
parent ff6b01c429
commit 36b818835b
2 changed files with 13 additions and 5 deletions

View file

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