I was hoping there would be some other way other than defining another body var. Thanks for the reply — I'll give abstracting out the views a try and then using the second example!
Post
Replies
Boosts
Views
Activity
I'd recommend watching a few of the Swift UI sessions from WWDC '20 to wrap your head around Swift UI. There's a few great sessions:
Introduction to Swift UI: https://developer.apple.com/wwdc20/10119
What's new in Swift UI: https://developer.apple.com/wwdc20/10041 (This one they go over those new items you talked about and how to implement them)
App Essentials in Swift UI: https://developer.apple.com/wwdc20/10037
If you're new to working with the UI controls provided with Swift, you should be able to get a good primer here: https://developer.apple.com/tutorials/swiftui/working-with-ui-controls and along with that video #2 above, you should have all you need to get started with color pickers and date pickers.
For more information on the MapKit and AVKit changes for Swift UI, you can check out this:
MapKit Documentation for Swift UI: https://developer.apple.com/documentation/mapkit/map
AVKit Player Documentation in Swift UI: https://developer.apple.com/documentation/avkit/videoplayer
And finally, if you're completely new to Swift UI, be sure to check out this great step-by-step follow along tutorial on how to build views with Swift UI: https://developer.apple.com/tutorials/swiftui/#swiftui-essentials
The com.apple.developer.aps-environment entitlement issue stems from not having the push notification entitlement in the entitlements file. You can add this by opening the project in Xcode, selecting the project in the Project Navigator, then selecting the "Signing & Capabilities" tab for your iOS Target. Once here, click the + button to add a new entitlement and select the "Push Notification" entitlement.
As far as the com.apple.application-identifier issue goes: Double check to make sure that the bundle identifier and the version numbers aren't placed in the wrong spots in the Info.plist file.
iOS 14 will be available for free this fall, if that is all that you're after. Otherwise, $99 is a great price to get all of the documentation and tools that Apple provides to build apps for all their platforms.