Aah I was afraid this would be the case, will submit feedback! Thanks for responding :)
Post
Replies
Boosts
Views
Activity
I also noticed if you have the button that will present the musicSubscriptionOffer use .toggle() instead of = true and you tap that button twice it will make your app crash 😅
Submitted feedback: FB9823513
Hi Joe,
Thanks for responding! I tripple checked and appleMusic is indeed the identifier of a Song object so not sure what's happening there.
As in regards to your second request, here is how I'm currently checking in the MPMediaLibrary
func checkInLocalLib(with id: String) {
let query = MPMediaQuery.songs()
let allSongs = query.items! as [MPMediaItem]
if allSongs.isEmpty == false {
let matchedSong = allSongs.filter { $0.playbackStoreID == id }
if matchedSong.isEmpty {
currentSongInLibrary = false
} else {
currentSongInLibrary = true
}
}
}
The new @StateObject solves this 🎉
Apparently you can use TabView as pointed out by someone over Twitter <3
I can't use the new @main / App structure because I can't seem to find a way to have relationship pages on watchOS with just SwiftUI