SwiftUI by Tutorials, 4th Edition: Declarative App Development on the Apple Ecosystem
- Length: 726 pages
- Edition: 4
- Language: English
- Publisher: Razeware LLC
- Publication Date: 2021-11-09
- ISBN-10: 1950325547
- ISBN-13: 9781950325542
- Sales Rank: #80542 (See Top 100 Books)
Learn & Master SwiftUI!
Every developer wants to build the most fluid and engaging declarative UI for their apps with as little code as possible. SwiftUI will help you do just that. Learn all the main concepts through an easy-to-follow tutorials where you’ll build apps that teach you to create modern, responsive UI and animations that look great on iOS, iPadOS, watchOS, tvOS, and even macOS.
Who This Book Is For
This book is for intermediate iOS developers who already know the basics of iOS, and who wish to know everything there is to know about SwiftUI.
Topics Covered in SwiftUI by Tutorials
- SwiftUI Overview: Learn SwiftUI features, as well as the differences between Apple’s platforms with SwiftUI. Customize your apps for AppKit, UIKit, WatchKit, tvOS, iPadOS and even Catalyst.
- Testability: See how to apply UI Testing to your SwiftUI apps in this very simple, yet powerful course.
- Controls & User Input: Learn about controls such as TextField, Button, Toggle, Slider, Stepper, pickers and many more.
- State & Data Flow: Learn how to bind data to the UI, about reactive updates to the UI through state management, and in-depth usage of the attributes related to SwiftUI.
- Accessibility: Learn how to navigate your app with VoiceOver on an iOS device and use the SwiftUI Accessibility API attributes to improve your app’s accessible UI.
- Drawing Custom Graphics & Animations: Create drawings, graphics, animations and even view transitions in SwiftUI.
- macOS: Learn how to create a document-based Mac app and later start with an existing iOS app and learn how to re-use code, views and assets for creating a macOS app.
One thing you can count on: After you finish reading this book, you’ll be able to take advantage of the latest and greatest features of SwiftUI to bring modern declarative UX to your apps.
Book License What You Need Book Source Code & Forums About the Authors About the Editors Chapter 1: Introduction Book structure About this book Chapter 2: Getting Started Getting started Creating your UI Updating the UI Making reusable views Presenting an alert Making it prettier Challenge Key points Chapter 3: Diving Deeper Into SwiftUI Views and modifiers Neumorphism Creating a neumorphic button Creating a beveled edge “Debugging” dark mode Modifying font Adapting to the device screen size Key points Chapter 4: Testing & Debugging Different types of tests Debugging SwiftUI apps Adding UI tests Creating a UI Test Accessing UI elements Reading the user interface Fixing the bug Adding more complex tests Simulating user interaction Testing multiple platforms Debugging views and state changes Challenge Key points Where to go from here? Chapter 5: Intro to Controls: Text & Image Getting started Text Image Brief overview of stack views More on Image Splitting Text Label: Combining Image and Text Key points Where to go from here? Chapter 6: Controls & User Input A simple registration form Creating the registration view Power to the user: the TextField Taps and buttons Toggle Control Handling the Focus and the Keyboard Other controls Key points Where to go from here? Chapter 7: Introducing Stacks & Containers Layout and priorities Stack views Back to Kuchi The Lazy Stacks Key points Where to go from here? Chapter 8: State & Data Flow — Part I MVC: The Mammoth View Controller A functional user interface State Using binding for two-way reactions Key points Where to go from here? Chapter 9: State & Data Flow – Part II The art of observation Sharing in the environment Object Ownership Understanding environment properties Key points Where to go from here? Chapter 10: More User Input & App Storage Creating the Settings View The Stepper Component The Toggle Component The Date Picker Component The Color picker component The picker component The tab bar App storage SceneStorage Key points Where to go from here? Chapter 11: Gestures Adding the learn feature Your first gesture Custom gestures Combining gestures for more complex interactions Key points Where to go from here? Chapter 12: Accessibility Using VoiceOver on a device Accessibility in SwiftUI Accessibility API RGBullsEye Adapting to user settings Kuchi MountainAirport Truly testing your app’s accessibility Key points Where to go from here? Chapter 13: Navigation Getting started Navigating through a SwiftUI app Creating navigation views Polishing the links Using navigation links Extending the hierarchy Adding items to the navigation bar Navigation via code Sharing the environment Using tabbed navigation Setting tabs Setting tab badges Key points Where to go from here? Chapter 14: Lists Iterating through data Making your data work better with iteration Improving performance Setting the scroll position in code Creating lists Building search results Building a hierarchical list Grouping list items Key points Where to go from here? Chapter 15: Advanced Lists Adding swipe actions Pull to refresh Updating views for time Searchable lists Key points Where to go from here? Chapter 16: Grids Building grids the original way Creating a fixed column grid Building flexible grids Interacting between views and columns Building adaptive grids Using sections in grids Key points Where to go from here? Chapter 17: Sheets & Alert Views Displaying a modal sheet Programmatically dismissing a modal Creating an alert Adding an action sheet Using alerts as action sheets Showing a popover Key points Where to go from here? Chapter 18: Drawing & Custom Graphics Using shapes Using GeometryReader Using gradients Adding grid marks Using paths Building the pie chart Adding a legend Fixing performance problems Drawing high-performance graphics Key points Where to go from here? Chapter 19: Animations & View Transitions Animating state changes Adding animation Animation types Eased animations Spring animations Removing and combining animations Animating from state changes Animating shapes Cascading animations Extracting animations from the view Animating paths Animating view transitions Linking view transitions Making Canvas animations Key points Where to go from here? Chapter 20: Complex Interfaces Building reusable views Showing flight progress Adding inline drawings Using keypaths Using the timeline Integrating with other frameworks Key points Where to go from here Chapter 21: Building a Mac App The default document app Setting up the app for Markdown Markdown and HTML Adding the HTML preview Adding a settings window Changing and creating menus Creating a toolbar Markdown in AttributedStrings Installing the app Challenge Key points Where to go from here? Chapter 22: Converting an iOS App to macOS Getting started Setting up the Mac app Fixing the build errors Styling the sidebar NavigationViews in macOS Displaying the data views Flight Status Searching for flights Last viewed flight Awards view Flight Timeline Challenge Key points Where to go from here? Conclusion
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.