Swift Cookbook
Готовые рецепты для iOS и macOS разработки
Résumé :
Introduction
The book Swift Cookbook by Kyle Begeman was published in 2015 and immediately found its niche among practical guides to the Swift language. Unlike academic textbooks, it is a collection of ready-made solutions — "recipes" — that can be directly applied in real projects for iOS and macOS. With 316 pages, it covers a wide range of topics without excessive theoretical burden.
What the book is about
The book is structured around the "problem — solution — discussion" principle. Each recipe starts with a specific task (e.g., "how to save data in UserDefaults" or "how to implement a transition animation between screens"), followed by ready-made code with explanations. Topics covered include:
- Swift basics: types, collections, optionals, closures.
- Working with UIKit: controllers, tables, collections, gestures.
- Data storage: Core Data, UserDefaults, file system.
- Networking: URLSession, JSON, REST API.
- Multithreading: GCD, OperationQueue.
- Animations and graphics: Core Animation, SpriteKit.
- System integration: notifications, camera, geolocation.
Who this book is for
The book is aimed at developers already familiar with programming basics but wanting to quickly learn Swift and Apple platforms. It will be useful for:
- Beginning iOS developers who want to move from theory to practice.
- Experienced Objective-C programmers transitioning to Swift.
- Students and anyone