Swift Cookbook - Third Edition: Proven recipes for developing robust iOS applications with Swift 5.9

Moon, Keith, Barker, Chris, Bolella, Daniel

  • 出版商: Packt Publishing
  • 出版日期: 2024-06-07
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 422
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803239581
  • ISBN-13: 9781803239583
  • 相關分類: Apple Developer
  • 立即出貨 (庫存=1)


Explore the latest features in Swift and build feature-rich, reliable iOS-native apps with proven industry-standard recipes, modern design techniques, and strategies beyond the official documentation.

Key Features
  1. Harness the power of Swift to create stunning applications, spanning mobile apps to machine learning models
  2. Learn and practice the flexible Swift programming language with a practical, recipe-based approach
  3. Leverage the new features in the latest release of Swift and iOS
  4. Purchase of the print or Kindle book includes a free PDF eBook
Book Description

Unlock the full potential of Swift and elevate your iOS development skills with this new edition of Swift Cookbook, highlighting the latest features in Swift 5.9.

This cookbook will take your Swift programming skills to the next level, boosting your productivity and efficiency step by step through a plethora of practical recipes. Although this book is primarily for experienced iOS developers, it provides an introductory overview of Swift 5.9, including its basic building blocks, syntax, and the functionalities of Swift constructs, to get you warmed up. Once you've mastered the fundamentals, you'll get down to business.

Unless you're completely new to Swift, this recipe-based guide doesn't need to be read in order; you can jump to whichever topic takes your fancy, from UIKit and SwiftUI to advanced UI techniques, from Swift's control flow and generics to machine learning with Vision, CoreML, and augmented reality with ARKit.

By the end of this book, you'll be fully up to speed with Swift's capabilities and be able to develop amazing applications across a wide variety of domains.

What you will learn
  1. Define flexible classes and structs using generics
  2. Use advanced operators and create custom ones
  3. Build iOS apps using UIKit and SwiftUI framework
  4. Import custom functionality into Swift Playgrounds
  5. Implement machine learning models using CoreML and Vision
  6. Manage 3D models and assets for ARKit using Swift and Xcode
Who this book is for

This book is for experienced iOS developers looking to master the diverse features offered by Swift 5.9 along with tips and tricks to efficiently code and build applications. Knowledge of general programming concepts will assist with understanding key concepts.

Table of Contents
  1. Swift Fundamentals
  2. Mastering the Building Blocks
  3. Data Wrangling with Swift
  4. Generics, Operators, and Nested Types
  5. Beyond the Standard Library
  6. Understanding Concurrency in Swift
  7. Building iOS Apps with UIKit
  8. Building iOS Apps with SwiftUI
  9. Getting to Grips with Combine
  10. Using CoreML and Vision in Swift
  11. Immersive Swift with ARKit and Augmented Reality
  12. Visualizing Data with Swift Charts



1. 利用Swift的強大功能創建令人驚艷的應用程式,涵蓋從移動應用程式到機器學習模型的範疇。
2. 以實用的配方為基礎,學習和實踐靈活的Swift程式語言。
3. 利用最新版本的Swift和iOS中的新功能。
4. 購買印刷版或Kindle電子書,即可獲得免費的PDF電子書。

解鎖Swift的全部潛力,通過這本Swift Cookbook的新版本提升您的iOS開發技能,突出展示Swift 5.9的最新功能。

這本食譜將使您的Swift編程技能提升到更高的水平,通過大量實用的配方逐步提高您的生產力和效率。雖然這本書主要針對有經驗的iOS開發人員,但它提供了Swift 5.9的入門概述,包括其基本組件、語法和Swift結構的功能,以幫助您入門。一旦掌握了基礎知識,您就可以開始實際應用。



1. 使用泛型定義靈活的類和結構。
2. 使用高級運算符並創建自定義運算符。
3. 使用UIKit和SwiftUI框架構建iOS應用程式。
4. 將自定義功能導入Swift Playgrounds。
5. 使用CoreML和Vision實現機器學習模型。
6. 使用Swift和Xcode管理ARKit的3D模型和資產。

本書適合對Swift 5.9的多樣功能以及高效編碼和構建應用程式的技巧和技巧感興趣的有經驗的iOS開發人員。對一般編程概念的了解將有助於理解關鍵概念。

1. Swift基礎知識
2. 掌握基本組件
3. 使用Swift進行數據處理
4. 泛型、運算符和嵌套類型
5. 超越標準庫
6. 理解Swift中的並發性
7. 使用UIKit構建iOS應用程式
8. 使用SwiftUI構建iOS應用程式
9. 掌握Combine
10. 使用Swift進行CoreML和Vision
11. 使用Swift和ARKit進行沉浸式應用程式和擴增實境
12. 使用Swift Charts視覺化數據