NEW: Learn to build amazing SwiftUI apps for macOS with my new book! >>

Setting up

If you’ve read from the introduction to here you’re now a fairly competent iOS developer. You’ve learned a lot about the Swift language, but also UIKit, SpriteKit, Auto Layout, MapKit, iBeacons, Core Graphics, Core Image and more all from scratch, using incremental learning and real projects to make the experience fun and productive.

At this point, the pace changes a little. I’d still encourage you to follow the projects in sequence, but for these final projects I no longer enforce a strict app-game-technique series. Instead, the goal is to try to fill in the gaps: some things I missed earlier because they were complicated, some things I missed and I wanted to add based on reader feedback, but quite a few things got added by Apple after I wrote the first 30 projects. These final projects aim will really help round out your knowledge.

Now for the important stuff: what are we going to build? Well, we’re going to start with two great new features first seen in iOS 9: UIStackView and iPad multitasking. Both of these are stand out technologies in iOS 9, and, remarkably, both are so easy to adopt that we can make this entire project in about 20 minutes. We're also going to touch on Size Classes briefly for the first time, so there's a lot to learn.

The project itself is called Multibrowser, and it shows one or more web views that the user can simultaneously browse. So, you could have one pane with live sports results, one pane with the latest news, and another on Reddit – just like Safari tabs, except they are all visible at the same time.

Please go ahead and create a new project in Xcode, choosing the Single View App template. Name it Project31, then choose Swift for your language. When the project is created, use the project editor so that it’s iPad-only – multitasking is only available as an iPad feature.

Hacking with Swift is sponsored by Fernando Olivares

SPONSORED Fernando's book will guide you in fixing bugs in three real, open-source, downloadable apps from the App Store. Learn applied programming fundamentals by refactoring real code from published apps. Hacking with Swift readers get a $10 discount!

Read the book

Sponsor Hacking with Swift and reach the world's largest Swift community!

Buy Pro Swift Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift (Vapor Edition) Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Server-Side Swift (Kitura Edition) Buy Beyond Code

Was this page useful? Let us know!

Average rating: 3.8/5

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.