Book Image

Swift Essentials - Second Edition

By : Alex Blewitt
Book Image

Swift Essentials - Second Edition

By: Alex Blewitt

Overview of this book

Swift was considered one of the biggest innovations last year, and certainly with Swift 2 announced at WWDC in 2015, this segment of the developer space will continue to be hot and dominating. This is a fast-paced guide to provide an overview of Swift programming and then walks you through in detail how to write iOS applications. Progress through chapters on custom views, networking, parsing and build a complete application as a Git repository, all by using Swift as the core language
Table of Contents (17 chapters)
Swift Essentials Second Edition
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Storyboard Applications with Swift and iOS

Storyboards were originally introduced in Xcode 4.2 with iOS 5.0. Storyboards solved the problem of being able to graphically present the flow of screens in an iOS application, and they also provided a way to edit the content of these screens in one place instead of many separate xib files. Storyboards work in the same way with Swift as with Objective-C, and the Swift and storyboards section shows how to integrate Swift code with storyboard transitions.

This chapter will present the following topics:

  • How to create a storyboard project

  • Creating multiple scenes

  • Using segues to navigate between scenes

  • Writing custom view controllers

  • Connecting views to outlets in Swift

  • Laying out views with Auto Layout

  • Using constraints to build resizable views