OHHHH it was "CURRENT"

This commit is contained in:
Francesco 2025-04-26 16:30:36 +02:00
parent 15c54b3d0c
commit 713046ce64
3 changed files with 2 additions and 6 deletions

View file

@ -57,7 +57,7 @@ class AniListMutation {
let variables: [String: Any] = [ let variables: [String: Any] = [
"mediaId": animeId, "mediaId": animeId,
"progress": episodeNumber, "progress": episodeNumber,
"status": "WATCHING" "status": "CURRENT"
] ]
let requestBody: [String: Any] = [ let requestBody: [String: Any] = [

View file

@ -1639,21 +1639,17 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
isDimmed.toggle() isDimmed.toggle()
dimButtonTimer?.invalidate() dimButtonTimer?.invalidate()
// animate black overlay
UIView.animate(withDuration: 0.25) { UIView.animate(withDuration: 0.25) {
self.blackCoverView.alpha = self.isDimmed ? 1.0 : 0.4 self.blackCoverView.alpha = self.isDimmed ? 1.0 : 0.4
} }
// fade controls instead of hiding
UIView.animate(withDuration: 0.25) { UIView.animate(withDuration: 0.25) {
for view in self.controlsToHide { for view in self.controlsToHide {
view.alpha = self.isDimmed ? 0 : 1 view.alpha = self.isDimmed ? 0 : 1
} }
// keep the dim button visible/in front
self.dimButton.alpha = self.isDimmed ? 0 : 1 self.dimButton.alpha = self.isDimmed ? 0 : 1
} }
// swap your trailing constraints on the dimbutton
dimButtonToSlider.isActive = !isDimmed dimButtonToSlider.isActive = !isDimmed
dimButtonToRight.isActive = isDimmed dimButtonToRight.isActive = isDimmed
UIView.animate(withDuration: 0.25) { self.view.layoutIfNeeded() } UIView.animate(withDuration: 0.25) { self.view.layoutIfNeeded() }

View file

@ -6,7 +6,7 @@
// //
import SwiftUI import SwiftUI
@preconcurrency import WebKit import WebKit
private struct ModuleLink: Identifiable { private struct ModuleLink: Identifiable {
let id = UUID() let id = UUID()