Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

By Neil Smyth
$32.99 $22.99
Book Nov 2018 813 pages 1st Edition
eBook
$32.99 $22.99
Print
$47.99
Subscription
$15.99 Monthly
eBook
$32.99 $22.99
Print
$47.99
Subscription
$15.99 Monthly

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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
Buy Now

Product Details


Publication date : Nov 10, 2018
Length 813 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781951442057
Category :
Languages :
Table of content icon View table of contents Preview book icon Preview Book

SwiftUI Essentials - iOS Edition

30.4 Explicit Animation

As previously discussed, implicit animation using the animation() modifier implements animation on any of the animatable properties on a view that appear before the animation modifier. SwiftUI provides an alternative approach referred to as explicit animation which is implemented using the withAnimation() closure. When using explicit animation, only the property changes that take place within the withAnimation() closure will be animated. To experience this in action, modify the example so that the rotation effect is performed within a withAnimation() closure and remove the animation() modifier:

var body: some View {

    Button(action: { withAnimation(.linear (duration: 2)) {

            self.rotation =

               (self.rotation < 360 ? self.rotation + 60 : 0)

        }

        self.scale = (self.scale < 2.8 ? self.scale + 0.3 : 1)

       }) {

         

       Text("Click to Animate")

          .rotationEffect(.degrees(rotation))

          .scaleEffect(scale)

          .animation(.linear(duration: 1))

           

    }

}

With the changes made, preview the layout and note that only the rotation is now animated. By using explicit animation, animation can be limited to specific properties of a view without having to worry about the ordering of modifiers.

Left arrow icon Right arrow icon

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.

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

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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
Buy Now

Product Details


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

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

Filter icon Filter
Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%

Filter reviews by


No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.