Skip to main content
  • Book
  • © 2015

Learn Swift 2 on the Mac

For OS X and iOS

Apress

Authors:

  • Covers object-oriented basics with Swift and the Swift Playground
  • Shows readers how to use key language features like functions and classes in Swift
  • Shows readers how to mix and match Swift and Objective-C
  • 17k Accesses

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (22 chapters)

  1. Front Matter

    Pages i-xxiii
  2. Hello Swift

    • Waqar Malik
    Pages 1-13
  3. The Swift Playground in Xcode

    • Waqar Malik
    Pages 15-27
  4. Constants, Variables, and Data Types

    • Waqar Malik
    Pages 35-48
  5. Expressions

    • Waqar Malik
    Pages 49-58
  6. Operators

    • Waqar Malik
    Pages 59-70
  7. Flow Control

    • Waqar Malik
    Pages 71-85
  8. Functions

    • Waqar Malik
    Pages 87-94
  9. Closures

    • Waqar Malik
    Pages 95-99
  10. Enumerations

    • Waqar Malik
    Pages 101-107
  11. Classes and Structures

    • Waqar Malik
    Pages 109-119
  12. Methods

    • Waqar Malik
    Pages 121-125
  13. Inheritance

    • Waqar Malik
    Pages 127-131
  14. Extensions

    • Waqar Malik
    Pages 133-138
  15. Memory Management and ARC

    • Waqar Malik
    Pages 139-149
  16. Error Handling

    • Waqar Malik
    Pages 151-156
  17. Protocols

    • Waqar Malik
    Pages 157-165
  18. Generics

    • Waqar Malik
    Pages 167-175
  19. Access Control

    • Waqar Malik
    Pages 177-183

About this book

If you are an iOS developer or planning to become one, learning Swift 2 is your #1 priority, and this book 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 HealthKit framework.

About the author

Waqar Malik is a UNIX nerd and Macintosh fan, and has been for long time. He has been helping developers with Cocoa and UNIX since the early days of OS X, and now with iOS. He consults, and writes Cocoa apps for his own company, Crimson Research.

Bibliographic Information

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access