Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

SwiftUI – watchOS NowPlayingView

I already created my Apple Watch music app with background sound in SwiftUI. I want to somehow present NowPlayigView. The only thing I found on the Apple Developer website about it is in the attached picture. Maybe the solution is very simple, but I can’t find it. Please help. Image

https://developer.apple.com/documentation/watchkit/storyboard_support/adding_a_now_playing_view

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Just put

NowPlayingView() where you want it.

Oh and make sure you import WatchKit.

Apple talks about it at about minute 15:40 in Build a workout App for Apple Watch

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading