Posts

Post not yet marked as solved
3 Replies
767 Views
Is it possible to get an album from a song in MusicKit? I haven't been able to find a way to do so currently. I have tried using .with() but it appears that album is not supported. What I am looking for is properties on the Song like what is present on MPMediaItem such as albumTitle, genre, etc.
Posted
by jknlsn.
Last updated
.
Post not yet marked as solved
1 Replies
596 Views
Is there an API or method to do the above? I am building a music app and can find the addItem API here https://developer.apple.com/documentation/mediaplayer/mpmedialibrary/1621278-additem, but no removal API. This is a pain for users as they will be able to add items, but then be unable to remove them unless they go to the Apple Music app. This also appears to be the case for playlists.
Posted
by jknlsn.
Last updated
.
Post not yet marked as solved
0 Replies
360 Views
I've been using sheets in my app EvoHIIT in a number of places to do things like create or share a circuit. The way I have been doing this so far is broken in iOS 14, but works in iOS 13. I use a single sheet view but conditionally show content based on a State variable, updated when a user taps a button to create or share a circuit. In iOS 14 I am able to replicate this by using multiple sheets instead which is usable, and using different @State variables for hiding or showing them, but I am unsure if this is by design or unintentionally broken. Example in this repository: https://github.com/jknlsn/MultipleModalSwiftUI
Posted
by jknlsn.
Last updated
.
Post not yet marked as solved
1 Replies
641 Views
I can't seem to figure out how to get a one-to-many relationship working with a NSPersistentCloudKitContainer. Has anyone been able to do this successfully? I see the relationship that is one-to-one on the other end, but not the relationship which is supposed to be many to many.I've been trying to use the information here https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/creating_a_core_data_model_for_cloudkit#3191035and am unsure if this is a limitation of CloudKit and CoreData, if the data is there and just not showing in the dashboard or any other option.I've put my code here on Github https://github.com/jknlsn/testcloudkit and would love any help or thoughts. I would also be very keen to hear of any better ways to be debugging and visualising this data I am trying to write apart from the CloudKit dashboard, I don't know yet how to retrieve and display the data with SwiftUI.
Posted
by jknlsn.
Last updated
.