mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-08 23:23:20 +00:00
fix crashes on 9.0.70
This commit is contained in:
@@ -49,7 +49,10 @@ extension NowPlayingScrollViewController {
|
||||
|
||||
var backgroundViewModel: SPTNowPlayingBackgroundViewModel {
|
||||
get {
|
||||
Ivars<SPTNowPlayingBackgroundViewModel>(self.backgroundViewController).viewModel
|
||||
let ivars = Ivars<SPTNowPlayingBackgroundViewModel>(self.backgroundViewController)
|
||||
return EeveeSpotify.hookTarget == .latest
|
||||
? ivars.artworkColorObservable
|
||||
: ivars.viewModel
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user