Posts

Post marked as solved
2 Replies
483 Views
I want to use the ApplicationMusicPlayer in my SwiftUI App and need the song duration to build a progression bar. ApplicationMusicPlayer only provides currentPlaybackTime and the Song struct in MusicKit has no duration prop. Is there an easy way to get the song duration with MusicKit or do I have to use a separate Apple Music API request to get durationInMillis?
Posted Last updated
.