O'Reilly logo

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

Ultimate Swift Programming

Video Description

Building apps for iPhone, iPad, and Mac just got easier, faster, and safer, now that Apple has released Swift. In this video workshop, Secret Lab co-founders Jon Manning and Paris Buttfield-Addison, together with Tim Nugent, take you through the components used for building iOS and OS X apps with Swift, and then step through the creation of a simple notepad from scratch, with counterparts for each operating system.

If you’re an experienced programmer who’s never touched Apple developer tools before, you’ll learn the basics for putting the Swift language, the Xcode IDE, Interface Builder, and many other Apple technologies to work. With this video workshop, you’ll learn how to turn your app ideas into reality.

Topics include:

  • Learn Swift basics, including variables, classes, functions, closures, control flow, and access control
  • Get up to speed on Xcode, Interface Builder, and Apple’s developer portal
  • Understand the OS X and iOS application lifecycle, and the model-view-controller paradigm
  • Work with views, view controllers, layout constraints, and touch and gesture recognizers
  • Include graphics, animations, layers, shapes, images, and blend modes
  • Make use of videos, users’ music and photos, speech, and the camera
  • Work with maps, location, motion sensors, notifications, and TouchID
  • Learn about document-based apps, background processing, and handoffs between OS X and iOS
  • Store and query files in iCloud, and sync between platforms

Secret Lab is a mobile consulting and product development company based in Hobart, Tasmania, Australia. Jon Manning, Tim Nugent, and Paris Buttfield-Addison are all mobile software engineers, game designers, and computing researchers.

Table of Contents

  1. Swift
    1. Welcome to Swift 00:01:52
    2. Variables, Types of Data and Collections 00:15:35
    3. Control Flow, Functions and Closures 00:17:51
    4. Objects & Extensions 00:16:12
    5. Operators 00:05:26
  2. Tools and Services
    1. Xcode 00:03:27
    2. Interface Builder 00:02:43
    3. iOS Simulator 00:03:11
    4. iTunes Connect and TestFlight 00:04:17
    5. Developer Portal 00:04:49
  3. The Basics
    1. Your First iOS App 00:03:40
    2. Your First OS X App 00:03:39
    3. iOS App Lifecycle 00:07:48
    4. OS X Lifecycle 00:06:23
    5. Organizing Your Project in Xcode 00:06:39
    6. Targets vs Products 00:01:18
  4. Architecture
    1. Model-View-Controller 00:02:55
    2. Windows and Window Controllers 00:05:25
    3. View Controllers, Custom View Controllers 00:20:20
    4. Actions and Outlets 00:13:27
    5. Operation Queues 00:08:02
    6. AppNap 00:08:47
    7. NSNotificationCenter 00:06:22
  5. Views and View Controllers
    1. Layouts with Constraints 00:08:56
    2. Constraints on iOS, Size Classes 00:08:39
    3. Touches and Gesture Recognizers 00:12:28
    4. Table Views on iOS 00:12:23
    5. Table Views on OS X 00:08:35
    6. Scroll Views 00:06:28
    7. Web Views 00:13:42
    8. Popovers 00:07:12
    9. Custom iOS Keyboards 00:08:40
  6. Graphics and Animation
    1. Views 00:06:20
    2. Custom Views 00:06:11
    3. Bezier Paths, Filling and Stroking Shapes 00:06:44
    4. Images 00:03:54
    5. Blend Modes 00:02:10
    6. Layers 00:04:30
    7. Shape Layers, Masking with Layers 00:04:05
    8. Transforming Layers, Applying Animations to Layers 00:05:54
    9. CAKeyframeAnimation, Using Different Animation Curves 00:03:27
    10. UIDynamics on iOS 00:10:13
    11. UIView Animations 00:06:07
    12. Graphics on OS X 00:02:09
  7. Media
    1. Video Playback with AV Foundation 00:15:30
    2. Accessing the iTunes Library on iOS 00:08:05
    3. Using the Camera and Photos 00:08:45
    4. Sharing and Share Extensions 00:10:23
    5. Game Controllers 00:05:21
  8. Text and Speech
    1. Localization and Internationalization 00:12:09
    2. Text - NSFormatter / DataDetector / Dynamic Text 00:06:20
    3. Speech Synthesis 00:02:37
  9. Real World
    1. Getting the Device's Location 00:10:56
    2. Maps 00:10:06
    3. Geocoding and Reverse Geocoding 00:10:31
    4. Motion Sensors on iOS 00:06:48
    5. Local Notifications on iOS 00:06:57
    6. Notifications on OS X 00:05:09
    7. Appearance Customization 00:04:04
    8. TouchID 00:05:58
  10. Working with Data
    1. Networking with NSURLSession 00:06:19
    2. NSUserDefaults, Accessing the File System, Working within the Sandbox 00:03:33
    3. NSBundle 00:03:25
    4. Accessing the Address book 00:08:00
    5. Accessing the Calendar 00:09:27
    6. UIDocument 00:35:06
    7. NSDocument 00:14:59
    8. Undo 00:04:58
    9. Background Processing and Non Standard Apps 00:08:56
    10. Error Handling 00:05:50
  11. iCloud
    1. Intro to iCloud, Setting up iCloud 00:08:32
    2. Key-value Store and CloudKit 00:10:36
    3. Storing Files in iCloud. Using NSMetadataQuery. 00:35:42
  12. Diary App for iOS
    1. Features and Architecture 00:00:45
    2. Document Class Setup and iCloud 00:08:19
    3. Document List 00:23:23
    4. Document Editing and Saving 00:19:21
    5. Adding Image Capture 00:18:03
    6. Adding Location Capture 00:04:49
    7. Document: Handling the Keyboard 00:09:00
    8. Conflict Handling 00:06:55
  13. Diary App for Mac
    1. App Setup and iCloud Setup 00:03:01
    2. Document Setup 00:03:43
    3. Document Editing and Saving 00:05:47
    4. Viewing Location and Image 00:05:11
    5. Adding Handoffs to the iOS app 00:08:52
  14. Instruments and Debugging
    1. Using Instruments 00:07:32
    2. Using the Debugger 00:09:37
    3. NS File Manager 00:13:00