From the course: Swift: Delegations and Data Sources

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Contexts in watchOS

Contexts in watchOS

From the course: Swift: Delegations and Data Sources

Start my 1-month free trial

Contexts in watchOS

- [Narrator] You've seen delegates at work in iOS for a phone. The pattern remains relatively the same for a watch, however, watchOS has a difference that I'd like to show you. You'll find the app we've been working with is a watchOS app as well. In Xcode, towards the bottom of the navigator, you'll see a few folders we haven't opened yet. Opening them, you'll find the WatchKit app and the WatchKit extension. For our purposes, the WatchKit app contains the views, and the WatchKit extension contains the model and controllers. For more about watchOS, take a look at the course Learning Apple watchOS four App Development. There's a small change in language here. In watchOS, controllers are known as interface controllers. The watch storyboard shows the same dessert order application. I've yet to connect the segue. Control drag from the dessert button to the selection list interface. Select a push segue. Select the segue. Open the attributes, and change the identifier to dessert. That…

Contents