Book description
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 13 IDE, Cocoa Touch, and the latest version of Apple's acclaimed programming language, Swift 5.5. With this thoroughly updated guide, you'll learn the Swift language, understand Apple's Xcode development tools, and discover the Cocoa framework.
- Explore Swift's object-oriented concepts
- Become familiar with built-in Swift types
- Dive deep into Swift objects, protocols, and generics
- Tour the life cycle of an Xcode project
- Learn how nibs are loaded
- Understand Cocoa's event-driven design
- Communicate with C and Objective-C
In this edition, catch up on the latest iOS programming features:
- Structured concurrency: async/await, tasks, and actors
- Swift native formatters and attributed strings
- Lazy locals and throwing getters
- Enhanced collections with the Swift Algorithms and Collections packages
- Xcode tweaks: column breakpoints, package collections, and Info.plist build settings
- Improvements in Git integration, localization, unit testing, documentation, and distribution
- And more!
Publisher resources
Table of contents
- Preface
-
I. Language
- 1. The Architecture of Swift
-
2. Functions
- Function Parameters and Return Value
- External Parameter Names
- Overloading
- Default Parameter Values
- Variadic Parameters
- Ignored Parameters
- Modifiable Parameters
- Function in Function
- Recursion
- Function as Value
- Anonymous Functions
- Define-and-Call
- Closures
- Curried Functions
- Function References and Selectors
- 3. Variables and Simple Types
- 4. Object Types
- 5. Flow Control and More
- 6. Structured Concurrency
-
II. IDE
- 7. Anatomy of an Xcode Project
- 8. Nib Files
- 9. Documentation
- 10. Life Cycle of a Project
-
III. Cocoa
- 11. Cocoa Classes
- 12. Cocoa Events
-
13. Memory Management
- Principles of Cocoa Memory Management
- Rules of Cocoa Memory Management
- What ARC Is and What It Does
- How Cocoa Objects Manage Memory
- Autorelease Pool
- Memory Management of Instance Properties
- Retain Cycles and Weak References
- Unusual Memory Management Situations
- Memory Management of CFTypeRefs
- Property Memory Management Policies
- Debugging Memory Management Mistakes
- 14. Communication Between Objects
- A. C, Objective-C, and Swift
- Index
Product information
- Title: iOS 15 Programming Fundamentals with Swift
- Author(s):
- Release date: October 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098118501
You might also like
book
iOS 16 Programming for Beginners - Seventh Edition
Take your next step in iOS app development and work with Xcode 14 and iOS 16. …
video
A Beginner's Guide to Creating iPhone Apps for iOS 15 Using Swift UI
If you are looking for a course that is fun, for complete beginners, and gets straight …
book
iOS 15 Programming for Beginners - Sixth Edition
Key Features Explore the latest features of Xcode 13 and the Swift 5.5 programming language in …
video
SwiftUI - The Complete iOS 17 Reference Library of Code
This course transforms app development learning with a definitive compilation of SwiftUI techniques, frameworks, and best …