Learn Swift on the Mac

Learn Swift on the Mac Cover Image

For OS X and iOS

By Waqar Malik

  • ISBN13: 978-1-484203-77-4
  • User Level: Beginner to Intermediate
  • Publishing February 4, 2015, but available now as part of the Alpha Program
  • Available eBook Formats: PDF

Full Description

There’s a new language in town. Swift is Apple’s new, native, fast, and easy to learn programming language for iOS and OS X app development. It’s their “Objective-C without the C”. If you are an iOS developer or planning to become one, learning Swift is your #1 priority, and Learn Swift on the Mac tells you everything you need to get up to speed, well, swiftly.

You’ll start with the Swift Playground and an introduction to object-oriented programming so you can immediately see Swift in action. You then learn about all of the key language features like functions and closures, classes, methods, extensions, and how Swift works just as well as Objective-C when it comes to easy memory management with ARC.

Finally you’ll learn how to use Swift alongside Objective-C as well as with Core Data, and you’ll learn how to put all of the pieces together with a health app using Apple’s new HealthKit framework.

What you’ll learn

  • Object-oriented basics with Swift and the Swift Playground
  • How to use key language features like functions and classes in Swift
  • How to mix and match Swift and Objective-C
  • How to use RESTful services with Swift
  • How to create a complete app with Swift and HealthKit

Who this book is for

Beginning to intermediate iOS and OS X developers who need to learn Swift or migrate to Swift from Objective-C.

Table of Contents

1. Hello Swift
2. The Swift Playground in Xcode 6
3. REPL and Swift
4. Introduction to Object-Oriented Programming
5. Constants, Variables, and Data Types
6. Operators
7. Flow Control
8. Functions and Closures
9. Classes and Structures
10. Methods
11. Inheritance
12. Extensions
13. Memory Management and ARC
14. Protocols
15. Generics
16. Expressions
17. Interoperability with Objective-C
18. Swift and Objective-C APIs
19. Mix and Match
20. Consuming RESTful Services
21. Bringing It All Together: Developing a HealthKit Application


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s