April 2020
Beginner
316 pages
8h 20m
English
Apple's watchOS can also get in on the action, with an almost identical pattern being used to implement the representable protocol throughout the watch development process. It's important to bear this in mind as we'll be covering this later in Chapter 11, SwiftUI on WatchOS, where this will play a slightly bigger part:
struct TestRepresentableViewController: WKInterfaceObjectRepresentable { func makeWKInterfaceObject(context: WKInterfaceObjectRepresentableContext<TestRepresentableViewController>) -> WKInterfaceTextField { // ... } func updateWKInterfaceObject(_ wkInterfaceObject: WKInterfaceTextField, context: WKInterfaceObjectRepresentableContext<TestRepresentableViewController>) { // ... } static func dismantleWKInterfaceObject ...Read now
Unlock full access