Yandex Music client for Apple TV
tvOS 17+ SwiftUI client for the unofficial Yandex Music API: rotor stations with feedback, library, search, artist and album pages, synced lyrics, and system Now Playing integration.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import Foundation
|
||||
|
||||
/// Playback position, published separately from `PlayerController`.
|
||||
///
|
||||
/// It ticks five times a second. Anything observing it re-renders that often,
|
||||
/// so only the transport bar and the lyrics watch it.
|
||||
@MainActor
|
||||
final class PlaybackClock: ObservableObject {
|
||||
@Published var currentTime: Double = 0
|
||||
@Published var duration: Double = 0
|
||||
}
|
||||
Reference in New Issue
Block a user