diff --git a/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate b/Sora.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate index 627e046..804cfd7 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 a09cb30..fd46a9d 100644 --- a/Sora/Utils/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/CustomPlayer/CustomPlayer.swift @@ -140,9 +140,10 @@ struct CustomMediaPlayer: View { .font(.headline) .foregroundColor(.white) } + .padding(.horizontal, 32) } Spacer() - if duration - currentTime <= duration * 0.07 && currentTime != 0 { + if duration - currentTime <= duration * 0.10 && currentTime != 0 { Button(action: { player.pause() presentationMode.wrappedValue.dismiss() @@ -156,7 +157,7 @@ struct CustomMediaPlayer: View { .foregroundColor(Color.black) } .padding() - .background(Color.white.opacity(0.8)) + .background(Color.white) .cornerRadius(32) } .padding(.trailing, 10) @@ -236,7 +237,7 @@ struct CustomMediaPlayer: View { } } } - .padding(.trailing, 10) + .padding(.trailing, 32) if showControls { MusicProgressSlider( @@ -252,6 +253,7 @@ struct CustomMediaPlayer: View { } } ) + .padding(.horizontal, 32) .padding(.bottom, 10) } } @@ -280,6 +282,7 @@ struct CustomMediaPlayer: View { .font(.system(size: 20)) } .frame(width: 60, height: 60) + .contentShape(Rectangle()) .padding() Spacer() } diff --git a/Sora/Views/AnimeViews/AnimeInfoExtraction.swift b/Sora/Views/AnimeViews/AnimeInfoExtraction.swift index 4ad8598..c00c5dc 100644 --- a/Sora/Views/AnimeViews/AnimeInfoExtraction.swift +++ b/Sora/Views/AnimeViews/AnimeInfoExtraction.swift @@ -159,6 +159,11 @@ extension AnimeInfoView { DispatchQueue.main.async { if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene, let rootVC = windowScene.windows.first?.rootViewController { + if let popoverController = alert.popoverPresentationController { + popoverController.sourceView = rootVC.view + popoverController.sourceRect = CGRect(x: rootVC.view.bounds.midX, y: rootVC.view.bounds.midY, width: 0, height: 0) + popoverController.permittedArrowDirections = [] + } rootVC.present(alert, animated: true, completion: nil) } }