Post not yet marked as solved
Post marked as unsolved with 0 replies, 346 views
I'm using Swift 5.0, and deploying to iOS 16. I am using the native MusicKit library for Swift.
When I use the following code:
let request = MusicCatalogSearchRequest(
term: "dopamine - Version Francaise",
types: [MusicKit.Song.self]
)
let response = try await request.response()
The response is completely empty. However when I search in the Music app dopamine - Version Francaise I find the song. I have found this to occur with quite a lot of songs.
Am I doing something wrong here? I've tried messing around with the types by adding every type of MusicCatalogSearchable.Type, but still no luck.