Chapter 3. Creating an iOS Swift App
With the release of Xcode 6 in 2014, it is possible to build Swift applications for iOS and OS X and submit them to the App Store for publication. This chapter will present both a single view application and a master-detail application, and use these to explain the concepts behind iOS applications as well as introduce classes in Swift.
This chapter will present the following topics:
How iOS applications are structured
Single view iOS applications
Creating classes in Swift
Protocols and enums in Swift
Using XCTest to test Swift code
Master-detail iOS applications
The
AppDelegate
andViewController
classes