SwiftUI Cookbook: A guide for building beautiful and interactive SwiftUI apps
Author: Juan C. Catalan (Author)
Publisher finelybook 出版社: Packt Publishing
Edition 版本: 3rd
Publication Date 出版日期: 2023-12-26
Language 语言: English
Print Length 页数: 798 pages
ISBN-10: 1805121731
ISBN-13: 9781805121732
Book Description
Experience the potential of SwiftUI, Swift 5.9, and Xcode 15 for crafting cutting-edge apps on iOS 17, macOS 14.0 Sonoma, and watchOS 10
Key Features
- Unlock advanced controls and animations with SwiftUI 5, taking your app development skills to the next level
- Visualize data effortlessly using Swift Charts enhancing your app’s data-driven capabilities
- Develop for multiple platforms, including iOS, macOS, and watchOS, and become a versatile app developer
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
SwiftUI is the modern way to build user interfaces for iOS, macOS, and watchOS. It provides a declarative and intuitive way to create beautiful and interactive user interfaces. The new edition of this comprehensive cookbook includes a fully updated repository for SwiftUI 5, iOS 17, Xcode 15, and Swift 5.9. With this arsenal, it teaches you everything you need to know to build beautiful and interactive user interfaces with SwiftUI 5, from the basics to advanced topics like custom modifiers, animations, and state management.
In this new edition, you will dive into the world of creating powerful data visualizations with a new chapter on Swift Charts and how to seamlessly integrate charts into your SwiftUI apps. Further, you will be able to unleash your creativity with advanced controls, including multi-column tables and two-dimensional layouts. You can explore new modifiers for text, images, and shapes that give you more control over the appearance of your views.
You will learn how to develop apps for multiple platforms, including iOS, macOS, watchOS, and more.
With expert insights, real-world examples, and a recipe-based approach, you’ll be equipped to build remarkable SwiftUI apps that stand out in today’s competitive market.
What you will learn
- Create stunning, user-friendly apps for iOS 17, macOS 14, and watchOS 10 with SwiftUI 5
- Use the advanced preview capabilities of Xcode 15
- Use async/await to write concurrent and responsive code
- Create powerful data visualizations with Swift Charts
- Enhance user engagement with modern animations and transitions
- Implement user authentication using Firebase and Sign in with Apple
- Learn about advanced topics like custom modifiers, animations, and state management
- Build multi-platform apps with SwiftUI
Who this book is for
This book is for mobile developers who want to learn SwiftUI as well as experienced iOS developers transitioning from UIKit to SwiftUI. The book assumes knowledge of the Swift programming language. Knowledge of object-oriented design and data structures will be useful but not necessary. You’ll also find this book to be a helpful resource if you’re looking for reference material regarding the implementation of various features in SwiftUI.
Table of Contents
- Using the Basic SwiftUI Views and Controls
- Displaying Scrollable Content with Lists and Scroll Views
- Exploring Advanced Components
- Viewing while Building with SwiftUI Preview in Xcode 15
- Creating New Components and Grouping Views with Container Views
- Presenting Views Modally
- Navigation Containers
- Drawing with SwiftUI
- Animating with SwiftUI
- Driving SwiftUI with Data
- Driving SwiftUI with Combine
- SwiftUI concurrency with async await
- Handling Authentication and Firebase with SwiftUI
- Persistence in SwiftUI with Core Data and Swift Data
- Data Visualization with Swift Charts
- Creating Multiplatform Apps with SwiftUI
- SwiftUI Tips and Tricks