init()
Creates a hosting controller object that you can use to implement your app’s main interface using SwiftUI views
Availability 有効性
Technology
class WKHostingController<Body> where Body : View
A 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.
init()
var body: Body
func updateBodyIfNeeded ()
func setNeedsBodyUpdate ()
class WKUserNotificationHostingController