SwiftUI - The Complete Cookbook of Code and SwiftUI Bible

Video description

A compendium of SwiftUI code for any scenario from the blockbuster bestseller "SwiftUI for Masterminds" by J.D. Gauchat.

About This Video

  • Delve into the framework and tools of SwiftUI
  • Learn how to build applications for iOS and macOS with less code
  • Get to grips with the techniques of declarative programming

In Detail

Do you want to learn the SwiftUI framework to build modern, stylish, and robust applications for Apple devices? This course will help you do that.

The course starts with an introduction to the Swift language and gives you an overview of application development using Swift. Next, you will learn all about the fundamental concepts of Swift, such as operators, variables, functions, methods, strings, arrays, memory management, error handling, and a lot more. Moving along, you will get a solid understanding of the SwiftUI framework and the Xcode interface and learn how to use a declarative user interface.

Next, you will learn to work with control views, navigation views, and lists. Moving ahead, you will learn to implement graphics, animations, gestures, and notifications in your applications. Next, you will understand how to manipulate data in your applications and in the cloud. Towards the end, you will learn how to integrate the UIKit framework with SwiftUI and learn the steps to publish your application to the App Store.

By the end of this course, you will be well versed with the SwiftUI framework and be able to implement it while developing applications for macOS and iOS.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Application Development – How to Use This Course?
    1. Guideline to Work on the Update
    2. Application Development – Overview
    3. How to Use This Course? - Create Your Own SwiftUI Documents
  2. Chapter 2 : Introduction to Swift
    1. Computer Programming – Playground
    2. Variables: Part 1 – Variables
    3. Variables: Part 2 - Arithmetic Operators
    4. Variables: Part 3 – Constants
    5. Data Types: Part 1 – Characters
    6. Data Types: Part 2 – Strings
    7. Data Types: Part 3 – Booleans
    8. Data Types: Part 4 – Optional
    9. Data Types: Part 5 – Tuples
    10. Conditionals and Loops: Part 1 - If and If Else
    11. Conditionals and Loops: Part 2 – Switch
    12. Conditionals and Loops: Part 3 - While and Repeat While
    13. Conditionals and Loops: Part 4 - For
    14. Conditionals and Loops: Part 5 - Control Transfer Statements
    15. Conditionals and Loop Part 6 – Guard
  3. Chapter 3 : Swift Paradigm
    1. Functions: Part 1 – Functions
    2. Functions: Part 2 - Generic Functions
    3. Functions: Part 3 - Standard Functions
    4. Functions: Part 4 – Scope
    5. Functions: Part 5 – Closures
    6. Structures: Part 1 – Structures
    7. Structures: Part 2 - Key Paths
    8. Structures: Part 3 – Methods
    9. Structures: Part 4 – Initialization
    10. Structures: Part 5 - Computed Properties
    11. Structures: Part 6 - Property Observers
    12. Structures: Part 7 - Type Properties and Methods
    13. Structures: Part 8 - Generic Structures
    14. Structures: Part 9 - Primitive Type Structures and Casting
    15. Structures: Part 10 - Range Structures
    16. Structures: Part 11 - String Structures
    17. Structures: Part 12 - Array Structures
    18. Structures: Part 13 - Set Structures
    19. Structures: Part 14 - Dictionary Structures
    20. Enumerations: Part 1 – Enumerations
    21. Enumerations: Part 2 - Raw Values
    22. Enumerations: Part 3 - Associated Values
    23. Enumerations: Part 4 - Collection Difference
    24. Objects: Part 1 – Objects
    25. Objects: Part 2 - Type Properties and Methods
    26. Objects: Part 3 - Reference Types
    27. Objects: Part 4 – Self
    28. Objects: Part 5 - Memory Management
    29. Objects: Part 6 – Inheritance
    30. Objects: Part 7 - Type Casting
    31. Objects: Part 8 – Initialization
    32. Objects: Part 9 – Deinitialization
    33. Objects: Part 10 - Access Controls and Modifiers
    34. Protocols: Part 1 – Protocols
    35. Protocols: Part 2 - Generic Protocols
    36. Protocols: Part 3 - Swift Protocols
    37. Protocols: Part 4 – Extensions
    38. Protocols: Part 5 – Delegates
    39. Errors: Part 1 – Errors
    40. Errors: Part 2 - Handling Errors
  4. Chapter 4 : Introduction to Framework
    1. Frameworks Importing Frameworks
    2. Foundation: Part 1 - Standard Functions
    3. Foundation: Part 2 – Strings
    4. Foundation: Part 3 – Ranges
    5. Foundation: Part 4 – Numbers
    6. Foundation: Part 5 – Dates
    7. Foundation: Part 6 – Measurements
    8. Foundation: Part 7 – Timer
    9. Foundation: Part 8 - Operation Queues
    10. Core Graphics Core Graphics - Data Types
    11. UIKit: Part 1 – Application
    12. UIKit: Part 2 – Device
    13. UIKit: Part 3 – Scenes – Windows – Views
  5. Chapter 5 : Xcode
    1. Part 1 - Xcode Interface
    2. Part 2 - Xcode – Template Application Delegate – Scene Delegate
    3. Part 3 - Xcode – ContentView - Asset Catalog
    4. Part 4 - Launch Screen
    5. Part 5 – Info.plist
  6. Chapter 6 : SwiftUI Framework
    1. User Interface: Part 1 – View Protocol
    2. User Interface: Part 2 - Opaque Types
    3. User Interface: Part 3 - Text Views
    4. User Interface: Part 4 – Modifiers
    5. User Interface: Part 5 - Color View
    6. User Interface: Part 6 - Image View
    7. User Interface: Part 7 - Event Modifiers
    8. User Interface: Part 8 - Custom Modifiers
    9. Layout: Part 1 – Stacks
    10. Layout: Part 2 – Spacer
    11. Layout: Part 3 - Safe Area
    12. Layout: Part 4 – Priorities
    13. Layout: Part 5 - Alignment Guides
    14. Layout: Part 6 – Groups
    15. Previews: Part 1 - Preview Modifiers
    16. Previews: Part 2 – Environment
  7. Chapter 7 : Declarative User Interface
    1. States: Part 1 - Property Wrappers
    2. States: Part 2 - @State
    3. States: Part 3 - @Binding
    4. States: Part 4 - @Environment
    5. Model: Part 1 – ObservableObject
    6. Model: Part 2 - @Environment
    7. View Model
    8. Combine Framework: Part 1 - Combine Framework
    9. Combine Framework: Part 2 – Publishers
    10. Combine Framework: Part 3 – Subscribers
    11. Combine Framework: Part 4 - Transforming Values
    12. Combine Framework: Part 5 – Operators
    13. Combine Framework: Part 6 – Subjects
    14. Combine Framework: Part 7 - Combine and SwiftUI
  8. Chapter 8 : Control Views
    1. Controls: Part 1 – Button View
    2. Controls: Part 2 – TextField View
    3. Controls: Part 3 – SecureField View
    4. Controls: Part 4 – Toggle View
    5. Controls: Part 5 – Slider View
    6. Controls: Part 6 – Stepper View
  9. Chapter 9 : Navigation
    1. Multiple Views: Part 1 – Multiple Views
    2. Multiple Views: Part 2 – NavigationLink View
    3. Multiple Views: Part 3 – TabView
    4. Modal Views: Part 1 – Sheets
    5. Modal Views: Part 2 – Popovers
    6. Modal Views: Part 3 – Alert Views
    7. Modal Views: Part 4 - Action Sheets
    8. Split Views: Part 1 - Split Views
    9. Split Views: Part 2 - Custom Navigation
    10. Orientation: Part 1 - Orientation - Size Classes
    11. Orientation: Part 2 - Interface Orientation
    12. Orientation: Part 3 - GeometryReader View
    13. Orientation: Part 4 – Preferences
    14. Mac Catalyst: Part 1 - Mac Catalyst - iPad Applications on the Mac Catalyst Conditional Code
    15. Mac Catalyst: Part 2 – Menu
    16. Mac Catalyst: Part 3 - Multiple Windows Support
  10. Chapter 10 : Lists
    1. Lists of Views: Part 1 – ForEach
    2. List of Views: Part 2 – ScrollView
    3. List View: Part 1 – List View
    4. List View: Part 2 – Sections
    5. List View: Part 3 – Edition Mode
    6. List View: Part 4 – Custom Buttons
    7. List View: Part 5 – Search
    8. List View: Part 6 – Navigation
    9. Pickers: Part 1 – Picker View
    10. Pickers: Part 2 – DatePicker View
    11. Forms
  11. Chapter 11 : Graphics and Animations
    1. Shapes: Part 1 – Common Shapes
    2. Shapes: Part 2 – Gradients
    3. Shapes: Part 3 – Images
    4. Paths: Part 1 – Path View
    5. Paths: Part 2 – Custom Shapes
    6. Transformations
    7. Animations: Part 1 – Animations
    8. Animations: Part 2 – Transitions
  12. Chapter 12 : Gestures Recognizers
    1. Part 1 – Gesture Modifiers
    2. Part 2 – Hit Testing
    3. Part 3 – Gesture Structure
    4. Part 4 – TapGesture
    5. Part 5 – LongPressGesture
    6. Part 6 – DragGesture
    7. Part 7 – Magnification Gesture
    8. Part 8 – Rotation Gesture
    9. Part 9 – Composing Gestures
  13. Chapter 13 : Notifications
    1. Notification Center: Part 1 – Notification Center
    2. Notification Center: Part 2 – System Notifications
    3. User Notifications: Part 1 – User Notifications Framework
    4. User Notifications: Part 2 – Notification Groups
    5. User Notifications: Part 3 – Provisional Notifications
    6. User Notifications: Part 4 – User Notifications Delegate
  14. Chapter 14 : Storage
    1. User Preferences User Defaults
    2. Files: Part 1 – File Manager – Uniform Resource Locators (URLs) and Paths
    3. Files: Part 2 – Files and Directories
    4. Files: Part 3 – Files Attributes
    5. Files: Part 4 – Files Content
    6. Files: Part 5 – Bundles
    7. Archiving: Part 1 – Encoding and decoding
    8. Archiving: Part 2 – JSON
    9. Core Data: Part 1 – Data Model
    10. Core Data: Part 2 – Core Data Stack
    11. Core Data: Part 3 – Fetch Request
    12. Core Data: Part 4 – Sort Descriptors
    13. Core Data: Part 5 – Predicates
    14. Core Data: Part 6 – Delete Objects
    15. Core Data: Part 7 – Modify Objects
    16. Core Data: Part 8 – Custom Fetch Requests
    17. Core Data: Part 9 – Sections
  15. Chapter 15 : iCloud - Data in the Cloud
    1. Enabling iCloud - Testing devices
    2. Key-value Storage
    3. iCloud Documents: Part 1 – iCloud Documents
    4. iCloud Documents: Part 2 – Metadata Query
    5. iCloud Documents: Part 3 – Single Document
    6. iCloud Documents: Part 4 – Multiple Document
    7. CloudKit CloudKit – Part 1 – Container
    8. CloudKit: Part 2 - Records - Zones - Query – Operations
    9. CloudKit: Part 3 – Batch operations - References - CloudKit Dashboard
    10. CloudKit: Part 4 – Implementing CloudKit
    11. CloudKit: Part 5 – Assets
    12. CloudKit: Part 6 – Subscriptions
    13. CloudKit: Part 7 – Errors
    14. CloudKit: Part 8 – CloudKit and Core Data
  16. Chapter 16 : Framework Integration
    1. Integration with UIKit
    2. TextView: Part 1 – TextView in SwiftUI
    3. TextView: Part 2 – Updating the View
    4. TextView: Part 3 – Coordinator
    5. TextView: Part 4 – Selection
    6. TextView: Part 5 - Attributed Text
    7. TextView: Part 6 – Keyboard
    8. Web: Part 1 – Web – Links
    9. Web: Part 2 – SFSafariViewController
    10. Web: Part 3 – WebKit Framework
    11. Web: Part 4 – Web Content
    12. MapKit: Part 1 – Configuring the map
    13. MapKit: Part 2 – Annotations
    14. MapKit: Part 3 – User Location
    15. MapKit: Part 4 – Search
    16. MapKit: Part 5 – Directions
    17. Media: Part 1 – Camera
    18. Media: Part 2 – Photo Library
    19. Media: Part 3 – Modifying Pictures
    20. Media: Part 4 – Custom Camera
    21. Media: Part 5 – AVKit Framework
    22. Media: Part 6 – Custom Video Player
    23. Collection Views: Part 1 – Collection View
    24. Collection Views: Part 2 – Collection View Cells
    25. Collection Views: Part 3 – Index Paths and Identifiers
    26. Collection Views: Part 4 – Flow Layout
    27. Collection Views: Part 5 – Collection View Delegate and Data Source
    28. Collection Views: Part 6 – Implementing Collection Views
    29. Collection Views: Part 7 – Scroll Direction
    30. Collection Views: Part 8 – Adding Items
    31. Collection Views: Part 9 – Selection
    32. Collection Views: Part 10 – Supplementary Views
    33. Collection Views: Part 11 – Constraints
    34. Collection Views: Part 12 – Custom Layout
    35. Collection Views: Part 13 – Collection Views and Core Data
  17. Chapter 17 : App Store
    1. Part 1 – Publishing, Certificates, Provisioning Profiles, and Identifiers
    2. Part 2 – App Store Connect
    3. Part 3 – Submitting the application

Product information

  • Title: SwiftUI - The Complete Cookbook of Code and SwiftUI Bible
  • Author(s): Stephen DeStefano
  • Release date: December 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781801070676