mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
OHHHH it was "CURRENT"
This commit is contained in:
parent
15c54b3d0c
commit
713046ce64
3 changed files with 2 additions and 6 deletions
|
|
@ -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] = [
|
||||||
|
|
|
||||||
|
|
@ -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 dim‑button
|
|
||||||
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() }
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue