Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
SwiftUI Essentials - iOS Edition
SwiftUI Essentials - iOS Edition

SwiftUI Essentials - iOS Edition: Learn to Develop iOS Apps using SwiftUI, Swift 5 and Xcode 11

eBook
$9.99 $32.99
Paperback
$47.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods

Key benefits

  • Take a guided tour of Xcode in SwiftUI development mode
  • Delve deep into Swift 5 with control flow, property wrappers, error handling, and more
  • Work with UI design concepts such as modifiers, tabbed views, and UI navigation

Description

Beginning with the basics, this book provides an outline of the steps necessary to set up an iOS development environment and introduced you to Swift Playgrounds so that you can learn and experiment with Swift. You’ll begin with an introduction to the key concepts of SwiftUI and its architecture. You’ll learn how to create customer SwiftUI views and combine them to create user interface layouts including how to use stacks, frames, and forms. As you progress, you’ll learn how to handle data using state properties. You’ll also learn how to use graphics, animation, transitions, and gestures in your user interface. The book finishes by explaining how to package an application and upload it to the App Store for publication. By the end of the book, you’ll have all the necessary skills to develop your own applications for iOS 13 with SwiftUI, Swift 5, and Xcode 11.

Who is this book for?

SwiftUI Essentials – iOS Edition is ideal for UI developers who want to use SwiftUI and Swift 5 to their advantage and improve their user interfaces. Some experience in UI development will help you easily understand the concepts explained in this book.

What you will learn

  • Install and configure Xcode 11
  • Draw 2D graphics
  • Work with SwiftUI views and subvies
  • Integrate SwiftUI views into existing UIKit-based projects
  • Design data-driven applications
  • Master the declarative syntax of SwiftUI
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 10, 2018
Length: 813 pages
Edition : 1st
Language : English
ISBN-13 : 9781951442057
Category :
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Nov 10, 2018
Length: 813 pages
Edition : 1st
Language : English
ISBN-13 : 9781951442057
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $29.97 $82.97 $53.00 saved
SwiftUI Essentials - iOS Edition
$47.99
Mastering Swift 5
$38.99
Swift Protocol-Oriented Programming
$32.99
Total $29.97$82.97 $53.00 saved Stars icon
Banner background image

Table of Contents

373 Chapters
1. Start Here. 1 Chevron down icon Chevron up icon
1.1 For Swift Programmers 1 Chevron down icon Chevron up icon
1.2 For Non-Swift Programmers. 2 Chevron down icon Chevron up icon
1.3 Source Code Download. 2 Chevron down icon Chevron up icon
1.4 Feedback. 2 Chevron down icon Chevron up icon
1.5 Errata. 2 Chevron down icon Chevron up icon
2. Joining the Apple Developer Program.. 3 Chevron down icon Chevron up icon
2.1 Downloading Xcode 11 and the iOS 13 SDK. 3 Chevron down icon Chevron up icon
2.2 Apple Developer Program.. 3 Chevron down icon Chevron up icon
2.3 When to Enroll in the Apple Developer Program?. 4 Chevron down icon Chevron up icon
2.4 Enrolling in the Apple Developer Program.. 4 Chevron down icon Chevron up icon
2.5 Summary. 5 Chevron down icon Chevron up icon
3. Installing Xcode 11 and the iOS 13 SDK. 7 Chevron down icon Chevron up icon
3.1 Identifying Your macOS Version. 7 Chevron down icon Chevron up icon
3.2 Installing Xcode 11 and the iOS 13 SDK. 8 Chevron down icon Chevron up icon
3.3 Starting Xcode. 8 Chevron down icon Chevron up icon
3.4 Adding Your Apple ID to the Xcode Preferences. 8 Chevron down icon Chevron up icon
3.5 Developer and Distribution Signing Identities. 9 Chevron down icon Chevron up icon
4. An Introduction to Xcode 11 Playgrounds. 11 Chevron down icon Chevron up icon
4.1 What is a Playground?. 11 Chevron down icon Chevron up icon
4.2 Creating a New Playground. 11 Chevron down icon Chevron up icon
4.3 A Basic Swift Playground Example. 13 Chevron down icon Chevron up icon
4.4 Viewing Results 15 Chevron down icon Chevron up icon
4.5 Adding Rich Text Comments. 16 Chevron down icon Chevron up icon
4.6 Working with Playground Pages 18 Chevron down icon Chevron up icon
4.7 Working with UIKit in Playgrounds 18 Chevron down icon Chevron up icon
4.8 Adding Resources to a Playground. 20 Chevron down icon Chevron up icon
4.9 Working with Enhanced Live Views 21 Chevron down icon Chevron up icon
4.10 Summary. 23 Chevron down icon Chevron up icon
5. Swift Data Types, Constants and Variables. 25 Chevron down icon Chevron up icon
5.1 Using a Swift Playground. 26 Chevron down icon Chevron up icon
5.2 Swift Data Types 26 Chevron down icon Chevron up icon
5.2.1 Integer Data Types 26 Chevron down icon Chevron up icon
5.2.2 Floating Point Data Types. 27 Chevron down icon Chevron up icon
5.2.3 Bool Data Type. 27 Chevron down icon Chevron up icon
5.2.4 Character Data Type. 27 Chevron down icon Chevron up icon
5.2.5 String Data Type. 28 Chevron down icon Chevron up icon
5.2.6 Special Characters/Escape Sequences 29 Chevron down icon Chevron up icon
5.3 Swift Variables 30 Chevron down icon Chevron up icon
5.4 Swift Constants. 30 Chevron down icon Chevron up icon
5.5 Declaring Constants and Variables 30 Chevron down icon Chevron up icon
5.6 Type Annotations and Type Inference. 30 Chevron down icon Chevron up icon
5.7 The Swift Tuple. 31 Chevron down icon Chevron up icon
5.8 The Swift Optional Type. 32 Chevron down icon Chevron up icon
5.9 Type Casting and Type Checking. 36 Chevron down icon Chevron up icon
5.10 Summary. 38 Chevron down icon Chevron up icon
6. Swift Operators and Expressions 39 Chevron down icon Chevron up icon
6.1 Expression Syntax in Swift 39 Chevron down icon Chevron up icon
6.2 The Basic Assignment Operator 39 Chevron down icon Chevron up icon
6.3 Swift Arithmetic Operators 39 Chevron down icon Chevron up icon
6.4 Compound Assignment Operators. 40 Chevron down icon Chevron up icon
6.5 Comparison Operators 41 Chevron down icon Chevron up icon
6.6 Boolean Logical Operators 42 Chevron down icon Chevron up icon
6.7 Range Operators 42 Chevron down icon Chevron up icon
6.8 The Ternary Operator 43 Chevron down icon Chevron up icon
6.9 Bitwise Operators 44 Chevron down icon Chevron up icon
6.9.1 Bitwise NOT. 44 Chevron down icon Chevron up icon
6.9.2 Bitwise AND. 45 Chevron down icon Chevron up icon
6.9.3 Bitwise OR. 45 Chevron down icon Chevron up icon
6.9.4 Bitwise XOR. 45 Chevron down icon Chevron up icon
6.9.5 Bitwise Left Shift 46 Chevron down icon Chevron up icon
6.9.6 Bitwise Right Shift 46 Chevron down icon Chevron up icon
6.10 Compound Bitwise Operators 47 Chevron down icon Chevron up icon
6.11 Summary. 47 Chevron down icon Chevron up icon
7. Swift Control Flow.. 49 Chevron down icon Chevron up icon
7.1 Looping Control Flow.. 49 Chevron down icon Chevron up icon
7.2 The Swift for-in Statement 49 Chevron down icon Chevron up icon
7.2.1 The while Loop. 50 Chevron down icon Chevron up icon
7.3 The repeat ... while loop. 51 Chevron down icon Chevron up icon
7.4 Breaking from Loops 51 Chevron down icon Chevron up icon
7.5 The continue Statement 52 Chevron down icon Chevron up icon
7.6 Conditional Flow Control 52 Chevron down icon Chevron up icon
7.7 Using the if Statement 53 Chevron down icon Chevron up icon
7.8 Using if ... else … Statements 53 Chevron down icon Chevron up icon
7.9 Using if ... else if ... Statements 54 Chevron down icon Chevron up icon
7.10 The guard Statement 54 Chevron down icon Chevron up icon
7.11 Summary. 55 Chevron down icon Chevron up icon
8. The Swift Switch Statement 57 Chevron down icon Chevron up icon
8.1 Why Use a switch Statement?. 57 Chevron down icon Chevron up icon
8.2 Using the switch Statement Syntax. 57 Chevron down icon Chevron up icon
8.3 A Swift switch Statement Example. 58 Chevron down icon Chevron up icon
8.4 Combining case Statements. 58 Chevron down icon Chevron up icon
8.5 Range Matching in a switch Statement 59 Chevron down icon Chevron up icon
8.6 Using the where statement 60 Chevron down icon Chevron up icon
8.7 Fallthrough. 60 Chevron down icon Chevron up icon
8.8 Summary. 61 Chevron down icon Chevron up icon
9. An Overview of Swift 5 Functions, Methods and Closures 63 Chevron down icon Chevron up icon
9.1 What is a Function?. 63 Chevron down icon Chevron up icon
9.2 What is a Method?. 63 Chevron down icon Chevron up icon
9.3 How to Declare a Swift Function. 63 Chevron down icon Chevron up icon
9.4 Implicit Returns from Single Expressions 64 Chevron down icon Chevron up icon
9.5 Calling a Swift Function. 65 Chevron down icon Chevron up icon
9.6 Handling Return Values 65 Chevron down icon Chevron up icon
9.7 Local and External Parameter Names 65 Chevron down icon Chevron up icon
9.8 Declaring Default Function Parameters 66 Chevron down icon Chevron up icon
9.9 Returning Multiple Results from a Function. 67 Chevron down icon Chevron up icon
9.10 Variable Numbers of Function Parameters. 67 Chevron down icon Chevron up icon
9.11 Parameters as Variables 68 Chevron down icon Chevron up icon
9.12 Working with In-Out Parameters 68 Chevron down icon Chevron up icon
9.13 Functions as Parameters 69 Chevron down icon Chevron up icon
9.14 Closure Expressions. 71 Chevron down icon Chevron up icon
9.15 Closures in Swift 73 Chevron down icon Chevron up icon
9.16 Summary. 73 Chevron down icon Chevron up icon
10. The Basics of Object-Oriented Programming in Swift 75 Chevron down icon Chevron up icon
10.1 What is an Instance?. 75 Chevron down icon Chevron up icon
10.2 What is a Class?. 75 Chevron down icon Chevron up icon
10.3 Declaring a Swift Class 75 Chevron down icon Chevron up icon
10.4 Adding Instance Properties to a Class 76 Chevron down icon Chevron up icon
10.5 Defining Methods 76 Chevron down icon Chevron up icon
10.6 Declaring and Initializing a Class Instance. 78 Chevron down icon Chevron up icon
10.7 Initializing and Deinitializing a Class Instance. 78 Chevron down icon Chevron up icon
10.8 Calling Methods and Accessing Properties 79 Chevron down icon Chevron up icon
10.9 Stored and Computed Properties. 80 Chevron down icon Chevron up icon
10.10 Lazy Stored Properties 81 Chevron down icon Chevron up icon
10.11 Using self in Swift 82 Chevron down icon Chevron up icon
10.12 Understanding Swift Protocols 84 Chevron down icon Chevron up icon
10.13 Opaque Return Types. 85 Chevron down icon Chevron up icon
10.14 Summary. 86 Chevron down icon Chevron up icon
11. An Introduction to Swift Subclassing and Extensions 87 Chevron down icon Chevron up icon
11.1 Inheritance, Classes and Subclasses. 87 Chevron down icon Chevron up icon
11.2 A Swift Inheritance Example. 87 Chevron down icon Chevron up icon
11.3 Extending the Functionality of a Subclass 88 Chevron down icon Chevron up icon
11.4 Overriding Inherited Methods 89 Chevron down icon Chevron up icon
11.5 Initializing the Subclass 90 Chevron down icon Chevron up icon
11.6 Using the SavingsAccount Class. 91 Chevron down icon Chevron up icon
11.7 Swift Class Extensions 91 Chevron down icon Chevron up icon
11.8 Summary. 92 Chevron down icon Chevron up icon
12. An Introduction to Swift Structures. 93 Chevron down icon Chevron up icon
12.1 An Overview of Swift Structures 93 Chevron down icon Chevron up icon
12.2 Value Types vs. Reference Types 94 Chevron down icon Chevron up icon
12.3 When to use Structures or Classes 96 Chevron down icon Chevron up icon
12.4 Summary. 96 Chevron down icon Chevron up icon
13. An Introduction to Swift Property Wrappers 97 Chevron down icon Chevron up icon
13.1 Understanding Property Wrappers 97 Chevron down icon Chevron up icon
13.2 A Simple Property Wrapper Example. 97 Chevron down icon Chevron up icon
13.3 Supporting Multiple Variables and Types 99 Chevron down icon Chevron up icon
13.4 Summary. 102 Chevron down icon Chevron up icon
14. Working with Array and Dictionary Collections in Swift 103 Chevron down icon Chevron up icon
14.1 Mutable and Immutable Collections 103 Chevron down icon Chevron up icon
14.2 Swift Array Initialization. 103 Chevron down icon Chevron up icon
14.3 Working with Arrays in Swift 104 Chevron down icon Chevron up icon
14.3.1 Array Item Count 104 Chevron down icon Chevron up icon
14.3.2 Accessing Array Items 105 Chevron down icon Chevron up icon
14.4 Random Items and Shuffling. 105 Chevron down icon Chevron up icon
14.5 Appending Items to an Array. 105 Chevron down icon Chevron up icon
14.5.1 Inserting and Deleting Array Items. 105 Chevron down icon Chevron up icon
14.6 Array Iteration. 106 Chevron down icon Chevron up icon
14.7 Creating Mixed Type Arrays. 106 Chevron down icon Chevron up icon
14.8 Swift Dictionary Collections 107 Chevron down icon Chevron up icon
14.9 Swift Dictionary Initialization. 107 Chevron down icon Chevron up icon
14.10 Sequence-based Dictionary Initialization. 108 Chevron down icon Chevron up icon
14.11 Dictionary Item Count 108 Chevron down icon Chevron up icon
14.12 Accessing and Updating Dictionary Items 109 Chevron down icon Chevron up icon
14.13 Adding and Removing Dictionary Entries 109 Chevron down icon Chevron up icon
14.14 Dictionary Iteration. 109 Chevron down icon Chevron up icon
14.15 Summary. 110 Chevron down icon Chevron up icon
15. Understanding Error Handling in Swift 5. 111 Chevron down icon Chevron up icon
15.1 Understanding Error Handling. 111 Chevron down icon Chevron up icon
15.2 Declaring Error Types 111 Chevron down icon Chevron up icon
15.3 Throwing an Error 112 Chevron down icon Chevron up icon
15.4 Calling Throwing Methods and Functions. 113 Chevron down icon Chevron up icon
15.5 Accessing the Error Object 114 Chevron down icon Chevron up icon
15.6 Disabling Error Catching. 114 Chevron down icon Chevron up icon
15.7 Using the defer Statement 114 Chevron down icon Chevron up icon
15.8 Summary. 115 Chevron down icon Chevron up icon
16. An Overview of SwiftUI 117 Chevron down icon Chevron up icon
16.1 UIKit and Interface Builder 117 Chevron down icon Chevron up icon
16.2 SwiftUI Declarative Syntax 118 Chevron down icon Chevron up icon
16.3 SwiftUI is Data Driven. 118 Chevron down icon Chevron up icon
16.4 SwiftUI vs. UIKit 119 Chevron down icon Chevron up icon
16.5 Summary. 120 Chevron down icon Chevron up icon
17. Using Xcode in SwiftUI Mode. 121 Chevron down icon Chevron up icon
17.1 Starting Xcode 11. 121 Chevron down icon Chevron up icon
17.2 Creating a SwiftUI Project 122 Chevron down icon Chevron up icon
17.3 Xcode in SwiftUI Mode. 122 Chevron down icon Chevron up icon
17.4 The Preview Canvas 123 Chevron down icon Chevron up icon
17.5 Preview Pinning. 125 Chevron down icon Chevron up icon
17.6 Modifying the Design. 125 Chevron down icon Chevron up icon
17.7 Editor Context Menu. 129 Chevron down icon Chevron up icon
17.8 Previewing on Multiple Device Configurations 129 Chevron down icon Chevron up icon
17.9 Running the App on a Simulator 131 Chevron down icon Chevron up icon
17.10 Running the App on a Physical iOS Device. 132 Chevron down icon Chevron up icon
17.11 Managing Devices and Simulators. 134 Chevron down icon Chevron up icon
17.12 Enabling Network Testing. 135 Chevron down icon Chevron up icon
17.13 Dealing with Build Errors. 135 Chevron down icon Chevron up icon
17.14 Monitoring Application Performance. 135 Chevron down icon Chevron up icon
17.15 Exploring the User Interface Layout Hierarchy. 136 Chevron down icon Chevron up icon
17.16 Summary. 139 Chevron down icon Chevron up icon
18. The Anatomy of a Basic SwiftUI Project 141 Chevron down icon Chevron up icon
18.1 Creating an Example Project 141 Chevron down icon Chevron up icon
18.2 UIKit and SwiftUI 141 Chevron down icon Chevron up icon
18.3 The AppDelegate.swift File. 141 Chevron down icon Chevron up icon
18.4 The SceneDelegate.swift File. 142 Chevron down icon Chevron up icon
18.5 ContentView.swift File. 144 Chevron down icon Chevron up icon
18.6 Assets.xcassets. 144 Chevron down icon Chevron up icon
18.7 Info.plist 144 Chevron down icon Chevron up icon
18.8 LaunchScreen.storyboard. 144 Chevron down icon Chevron up icon
18.9 Summary. 144 Chevron down icon Chevron up icon
19. Creating Custom Views with SwiftUI 145 Chevron down icon Chevron up icon
19.1 SwiftUI Views. 145 Chevron down icon Chevron up icon
19.2 Creating a Basic View.. 145 Chevron down icon Chevron up icon
19.3 Adding Additional Views 146 Chevron down icon Chevron up icon
19.4 Working with Subviews. 148 Chevron down icon Chevron up icon
19.5 Views as Properties 149 Chevron down icon Chevron up icon
19.6 Modifying Views 150 Chevron down icon Chevron up icon
19.7 Working with Text Styles 150 Chevron down icon Chevron up icon
19.8 Modifier Ordering. 152 Chevron down icon Chevron up icon
19.9 Custom Modifiers 153 Chevron down icon Chevron up icon
19.10 Basic Event Handling. 153 Chevron down icon Chevron up icon
19.11 The onAppear and onDisappear Methods 154 Chevron down icon Chevron up icon
19.12 Building Custom Container Views. 155 Chevron down icon Chevron up icon
19.13 Summary. 156 Chevron down icon Chevron up icon
20. SwiftUI Stacks and Frames 157 Chevron down icon Chevron up icon
20.1 SwiftUI Stacks. 157 Chevron down icon Chevron up icon
20.2 Spacers, Alignment and Padding. 159 Chevron down icon Chevron up icon
20.3 Container Child Limit 161 Chevron down icon Chevron up icon
20.4 Text Line Limits and Layout Priority. 162 Chevron down icon Chevron up icon
20.5 SwiftUI Frames 164 Chevron down icon Chevron up icon
20.6 Frames and the Geometry Reader 166 Chevron down icon Chevron up icon
20.7 Summary. 167 Chevron down icon Chevron up icon
21. Working with SwiftUI State, Observable and Environment Objects 169 Chevron down icon Chevron up icon
21.1 State Properties 169 Chevron down icon Chevron up icon
21.2 State Binding. 171 Chevron down icon Chevron up icon
21.3 Observable Objects. 172 Chevron down icon Chevron up icon
21.4 Environment Objects 174 Chevron down icon Chevron up icon
21.5 Summary. 176 Chevron down icon Chevron up icon
22. A SwiftUI Example Tutorial 177 Chevron down icon Chevron up icon
22.1 Creating the Example Project 177 Chevron down icon Chevron up icon
22.2 Reviewing the Project 178 Chevron down icon Chevron up icon
22.3 Adding a VStack to the Layout 180 Chevron down icon Chevron up icon
22.4 Adding a Slider View to the Stack. 180 Chevron down icon Chevron up icon
22.5 Adding a State Property. 181 Chevron down icon Chevron up icon
22.6 Adding Modifiers to the Text View.. 182 Chevron down icon Chevron up icon
22.7 Adding Rotation and Animation. 183 Chevron down icon Chevron up icon
22.8 Adding a TextField to the Stack. 185 Chevron down icon Chevron up icon
22.9 Adding a Color Picker 185 Chevron down icon Chevron up icon
22.10 Tidying the Layout 187 Chevron down icon Chevron up icon
22.11 Summary. 190 Chevron down icon Chevron up icon
23. SwiftUI Observable and Environment Objects – A Tutorial 191 Chevron down icon Chevron up icon
23.1 About the ObservableDemo Project 191 Chevron down icon Chevron up icon
23.2 Creating the Project 191 Chevron down icon Chevron up icon
23.3 Adding the Observable Object 191 Chevron down icon Chevron up icon
23.4 Designing the ContentView Layout 192 Chevron down icon Chevron up icon
23.5 Adding the Second View.. 194 Chevron down icon Chevron up icon
23.6 Adding Navigation. 195 Chevron down icon Chevron up icon
23.7 Using an Environment Object 196 Chevron down icon Chevron up icon
23.8 Summary. 198 Chevron down icon Chevron up icon
24. SwiftUI Stack Alignment and Alignment Guides. 199 Chevron down icon Chevron up icon
24.1 Container Alignment 199 Chevron down icon Chevron up icon
24.2 Alignment Guides. 201 Chevron down icon Chevron up icon
24.3 Using the Alignment Guides Tool 205 Chevron down icon Chevron up icon
24.4 Custom Alignment Types 206 Chevron down icon Chevron up icon
24.5 Cross Stack Alignment 209 Chevron down icon Chevron up icon
24.6 ZStack Custom Alignment 212 Chevron down icon Chevron up icon
24.7 Summary. 215 Chevron down icon Chevron up icon
25. SwiftUI Lists and Navigation. 217 Chevron down icon Chevron up icon
25.1 SwiftUI Lists 217 Chevron down icon Chevron up icon
25.2 SwiftUI Dynamic Lists 219 Chevron down icon Chevron up icon
25.3 SwiftUI NavigationView and NavigationLink. 221 Chevron down icon Chevron up icon
25.4 Making the List Editable. 223 Chevron down icon Chevron up icon
25.5 Summary. 226 Chevron down icon Chevron up icon
26. A SwiftUI List and Navigation Tutorial 227 Chevron down icon Chevron up icon
26.1 About the ListNavDemo Project 227 Chevron down icon Chevron up icon
26.2 Creating the ListNavDemo Project 227 Chevron down icon Chevron up icon
26.3 Preparing the Project 227 Chevron down icon Chevron up icon
26.4 Adding the Car Structure. 228 Chevron down icon Chevron up icon
26.5 Loading the JSON Data. 229 Chevron down icon Chevron up icon
26.6 Adding the Data Store. 230 Chevron down icon Chevron up icon
26.7 Designing the Content View.. 230 Chevron down icon Chevron up icon
26.8 Designing the Detail View.. 233 Chevron down icon Chevron up icon
26.9 Adding Navigation to the List 235 Chevron down icon Chevron up icon
26.10 Designing the Add Car View.. 236 Chevron down icon Chevron up icon
26.11 Implementing Add and Edit Buttons 239 Chevron down icon Chevron up icon
26.12 Adding the Edit Button Methods. 241 Chevron down icon Chevron up icon
26.13 Summary. 242 Chevron down icon Chevron up icon
27. Building Tabbed Views in SwiftUI 243 Chevron down icon Chevron up icon
27.1 An Overview of SwiftUI TabView.. 243 Chevron down icon Chevron up icon
27.2 Creating the TabViewDemo App. 244 Chevron down icon Chevron up icon
27.3 Adding the TabView Container 244 Chevron down icon Chevron up icon
27.4 Adding the Content Views 244 Chevron down icon Chevron up icon
27.5 Adding the Tab Items. 244 Chevron down icon Chevron up icon
27.6 Adding Tab Item Tags. 245 Chevron down icon Chevron up icon
27.7 Summary. 246 Chevron down icon Chevron up icon
28. Building Context Menus in SwiftUI 247 Chevron down icon Chevron up icon
28.1 Creating the ContextMenuDemo Project 247 Chevron down icon Chevron up icon
28.2 Preparing the Content View.. 247 Chevron down icon Chevron up icon
28.3 Adding the Context Menu. 248 Chevron down icon Chevron up icon
28.4 Testing the Context Menu. 249 Chevron down icon Chevron up icon
28.5 Summary. 250 Chevron down icon Chevron up icon
29. Basic SwiftUI Graphics Drawing. 251 Chevron down icon Chevron up icon
29.1 Creating the DrawDemo Project 251 Chevron down icon Chevron up icon
29.2 SwiftUI Shapes 251 Chevron down icon Chevron up icon
29.3 Using Overlays 254 Chevron down icon Chevron up icon
29.4 Drawing Custom Paths and Shapes 254 Chevron down icon Chevron up icon
29.5 Drawing Gradients. 257 Chevron down icon Chevron up icon
29.6 Summary. 260 Chevron down icon Chevron up icon
30. SwiftUI Animation and Transitions 261 Chevron down icon Chevron up icon
30.1 Creating the AnimationDemo Example Project 261 Chevron down icon Chevron up icon
30.2 Implicit Animation. 261 Chevron down icon Chevron up icon
30.3 Repeating an Animation. 264 Chevron down icon Chevron up icon
30.4 Explicit Animation. 264 Chevron down icon Chevron up icon
30.5 Animation and State Bindings 265 Chevron down icon Chevron up icon
30.6 Automatically Starting an Animation. 266 Chevron down icon Chevron up icon
30.7 SwiftUI Transitions. 269 Chevron down icon Chevron up icon
30.8 Combining Transitions 270 Chevron down icon Chevron up icon
30.9 Asymmetrical Transitions 271 Chevron down icon Chevron up icon
30.10 Summary. 271 Chevron down icon Chevron up icon
31. Working with Gesture Recognizers in SwiftUI 273 Chevron down icon Chevron up icon
31.1 Creating the GestureDemo Example Project 273 Chevron down icon Chevron up icon
31.2 Basic Gestures. 273 Chevron down icon Chevron up icon
31.3 The onChange Action Callback. 275 Chevron down icon Chevron up icon
31.4 The updating Callback Action. 276 Chevron down icon Chevron up icon
31.5 Composing Gestures 278 Chevron down icon Chevron up icon
31.6 Summary. 280 Chevron down icon Chevron up icon
32. Integrating UIViews with SwiftUI 281 Chevron down icon Chevron up icon
32.1 SwiftUI and UIKit Integration. 281 Chevron down icon Chevron up icon
32.2 Integrating UIViews into SwiftUI 282 Chevron down icon Chevron up icon
32.3 Adding a Coordinator 283 Chevron down icon Chevron up icon
32.4 Handling UIKit Delegation and Data Sources. 284 Chevron down icon Chevron up icon
32.5 An Example Project 286 Chevron down icon Chevron up icon
32.6 Wrapping the UIScrolledView. 286 Chevron down icon Chevron up icon
32.7 Implementing the Coordinator 287 Chevron down icon Chevron up icon
32.8 Using MyScrollView.. 288 Chevron down icon Chevron up icon
32.9 Summary. 289 Chevron down icon Chevron up icon
33. Integrating UIViewControllers with SwiftUI 291 Chevron down icon Chevron up icon
33.1 UIViewControllers and SwiftUI 291 Chevron down icon Chevron up icon
33.2 Creating the ViewControllerDemo project 291 Chevron down icon Chevron up icon
33.3 Wrapping the UIImagePickerController 291 Chevron down icon Chevron up icon
33.4 Designing the Content View.. 293 Chevron down icon Chevron up icon
33.5 Completing MyImagePicker 294 Chevron down icon Chevron up icon
33.6 Completing the Content View.. 296 Chevron down icon Chevron up icon
33.7 Testing the App. 297 Chevron down icon Chevron up icon
33.8 Summary. 297 Chevron down icon Chevron up icon
34. Integrating SwiftUI with UIKit 299 Chevron down icon Chevron up icon
34.1 An Overview of the Hosting Controller 299 Chevron down icon Chevron up icon
34.2 A UIHostingController Example Project 300 Chevron down icon Chevron up icon
34.3 Adding the SwiftUI Content View. 300 Chevron down icon Chevron up icon
34.4 Preparing the Storyboard. 301 Chevron down icon Chevron up icon
34.5 Adding a Hosting Controller 302 Chevron down icon Chevron up icon
34.6 Configuring the Segue Action. 304 Chevron down icon Chevron up icon
34.7 Embedding a Container View.. 306 Chevron down icon Chevron up icon
34.8 Embedding SwiftUI in Code. 308 Chevron down icon Chevron up icon
34.9 Summary. 310 Chevron down icon Chevron up icon
35. Preparing and Submitting an iOS 13 Application to the App Store. 311 Chevron down icon Chevron up icon
35.1 Verifying the iOS Distribution Certificate. 311 Chevron down icon Chevron up icon
35.2 Adding App Icons 313 Chevron down icon Chevron up icon
35.3 Designing the Launch Screen. 314 Chevron down icon Chevron up icon
35.4 Assign the Project to a Team.. 314 Chevron down icon Chevron up icon
35.5 Archiving the Application for Distribution. 315 Chevron down icon Chevron up icon
35.6 Configuring the Application in iTunes Connect 316 Chevron down icon Chevron up icon
35.7 Validating and Submitting the Application. 317 Chevron down icon Chevron up icon
35.8 Configuring and Submitting the App for Review.. 320 Chevron down icon Chevron up icon
An Introduction to Swift Playgrounds Chevron down icon Chevron up icon
Working with Array and Dictionary Collections in Swift Chevron down icon Chevron up icon
The Swift Switch Statement Chevron down icon Chevron up icon
Swift Control Flow Chevron down icon Chevron up icon
The Basics of Object-Oriented Programming in Swift Chevron down icon Chevron up icon
Creating Custom Views with SwiftUI Chevron down icon Chevron up icon
Integrating UIViews with SwiftUI Chevron down icon Chevron up icon
Installing Xcode 11 and the iOS 13 SDK Chevron down icon Chevron up icon
SwiftUI Stacks and Frames Chevron down icon Chevron up icon
Joining the Apple Developer Program Chevron down icon Chevron up icon
An Overview of Swift 5 Functions, Methods and Closures Chevron down icon Chevron up icon
SwiftUI Stack Alignment and Alignment Guides Chevron down icon Chevron up icon
A SwiftUI Example Tutorial Chevron down icon Chevron up icon
SwiftUI Observable and Environment Objects – A Tutorial Chevron down icon Chevron up icon
SwiftUI Lists and Navigation Chevron down icon Chevron up icon
The Anatomy of a Basic SwiftUI Project Chevron down icon Chevron up icon
SwiftUI Animation and Transitions Chevron down icon Chevron up icon
Working with SwiftUI State, Observable and Environment Objects Chevron down icon Chevron up icon
A SwiftUI List and Navigation Tutorial Chevron down icon Chevron up icon
Integrating UIViewControllers with SwiftUI Chevron down icon Chevron up icon
Integrating SwiftUI with UIKit Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(10 Ratings)
5 star 60%
4 star 20%
3 star 20%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




JustMe Jan 09, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book has two broad parts; one on swift the language and one on SwiftUI the GUI framework. At first I was a bit put off by the inclusion of such a large section on the Swift language as I bought this book to learn more about SwiftUI not Swift which I already know. Still, I read through the sections on Swift and I came to find that it is a very good introduction to Swift. While I did not need that introduction, I do respect that it was well written. I found myself wishing I had found the first part of this book when I first learned Swift; alias it did not exist at that time. The parts of this book on SwiftUI were just as good and well done as the part on Swift and I feel like I understand SwiftUI far better now then I did before I read this book. There were also smaller parts on things like how to submit an app to the AppStore which were very direct and to the point. Again, not what I needed out of a book on SwiftUI, but well done. I think it was well worth it and gave it five stars.
Amazon Verified review Amazon
Richard Bendick Aug 25, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I am starting for an IOS class and needed a book to get me up to speed with Swift. I have taken classes in other programming languages, so I have some background. This book met my needs, I liked the pacing of the chapters and the accuracy of the coding examples. This book is well written, accurate and worth the money.
Amazon Verified review Amazon
Moe Green Jul 20, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book covered the material broadly and deeply in a very clear and understandable fashion.
Amazon Verified review Amazon
Ed Dec 17, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is certainly the best book to buy if you intend to learn SwiftUI. The author is certainly knowledgeable and very effective in writing fluently, eloquently and in a simple manner such that it easy to understand the topic he’s addressing. As it’s title says this book covers all the essentials needed to confidently build SwiftUI apps in relatively short order and get them to the Apps Store. At the end of each chapter the author summarizes what was covered including salient points. All of the demos provided in the book are easy to follow and I was able to complete each without difficulty.
Amazon Verified review Amazon
Aramis Feb 13, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Ottimo libro per imparare SwiftUI. Sono ancora all'inizio, ma mi sembra che gli argomenti sono trattati semplicemente con parecchi esempi. Più avanti potrò dare un giudizio complessivo.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela