Changes applied: Still fucked but working

This commit is contained in:
Hariharan Mudaliar 2025-10-06 00:07:02 +05:30
commit 310dde6573
8 changed files with 18739 additions and 1538 deletions

View file

@ -27,3 +27,18 @@ struct PlaybackState {
var lastUpdated: Date = Date.distantPast
var artwork: Data?
}
extension PlaybackState: Equatable {
static func == (lhs: PlaybackState, rhs: PlaybackState) -> Bool {
return lhs.bundleIdentifier == rhs.bundleIdentifier
&& lhs.isPlaying == rhs.isPlaying
&& lhs.title == rhs.title
&& lhs.artist == rhs.artist
&& lhs.album == rhs.album
&& lhs.currentTime == rhs.currentTime
&& lhs.duration == rhs.duration
&& lhs.isShuffled == rhs.isShuffled
&& lhs.repeatMode == rhs.repeatMode
&& lhs.artwork == rhs.artwork
}
}