O'Reilly logo

Reactive Programming with Swift 4 by Navdeep Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MVC implementation

The first place a Cocoa developer encounters MVC is in the structure of an application when a new project is created in Xcode. Let's create a single view application once again; ensure that you include core data that is checked while creating the project and name it as MVCTemplate. Other than appdelegate, note that all other components are already members of the model, view, or controller. MVCTemplate.xcdatamodeld is the data model created by the core data. The storyboard is the View, and the ViewController modules are part of the controller subsystem. Arguably, appdelegate also fits within the controller.

You can't really do any logic within the XML, as shown in the following screenshot for you to explore on your own: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required