A WatchKit interface controller that hosts a SwiftUI view hierarchy.
- watchOS 6.0+
- Xcode 11.0+
WKHosting presents and manages your app's main interface using SwiftUI views. You must subclass
WKHosting and override the
body property to provide the set of SwiftUI views you want to display. Display the content of your hosting controller as you would any other
WKInterface object. For example, you can include it as one of your app's root interface controllers, or present it modally.