Have a song with a name that is really long (might need to adjust prefixLength to 60)
I was previously relying on handleVisibilityChange() being called twice on startup (the first time, the player is nil). Now, it seems to only be called once.
This can be fixed by adding the following code to SoundSeerViewModel's init function:
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) { [weak self] in
self?.handleVisibilityChange(false)
}
Repro:
prefixLength
to 60)I was previously relying on
handleVisibilityChange()
being called twice on startup (the first time, the player is nil). Now, it seems to only be called once.This can be fixed by adding the following code to SoundSeerViewModel's
init
function: