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] = [
"mediaId": animeId,
"progress": episodeNumber,
"status": "WATCHING"
"status": "CURRENT"
]
let requestBody: [String: Any] = [

View file

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

View file

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