SwiftUI - Build Amazing Apps - With Much Less Code

Video description

Learn how to work with Apple’s new declarative framework and build beautiful and stylish apps fast, with few lines of code.

About This Video

  • Get to grips with the fundamentals of the SwiftUI framework and Swift language
  • Learn how to use declarative programming for building macOS applications
  • Get ready to build fun and amazing applications, such as the weather app and guess the color app

In Detail

Apple’s SwiftUI is becoming one of the most popular tools for building iOS applications. It is as easy as dragging and dropping, and it uses five times less code compared to UIkit and storyboards. This course will teach you how to use SwiftUI features and declarative programming to build rich and robust applications for the Apple store.

The course starts with an introduction to SwiftUI and Swift language and gives you a tour of Xcode and Previews. Next, you will become familiar with the basic topics of SwiftUI, such as constants, variables, operators, classes, structs, properties, initializers, error handling, and stacks. Moving along, you will understand the role of text fields, state, image, and modifiers in SwiftUI. Toward the end, you will learn to build interesting applications in SwiftUI to encapsulate your learning.

By the end of this course, you will be able to build modern and reliable apps using SwiftUI that can be deployed to any Apple device.

Audience

If you are new to iOS programming or an experienced macOS application developer looking to become familiar with SwiftUI features to build stylish and amazing applications, this course is for you. Working knowledge of Apple’s Swift language is required to get started with this course.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction – What is SwiftUI?
    1. Introduction – What Is SwiftUI?
  2. Chapter 2 : Preview and the New Xcode
    1. Xcode and Previews
  3. Chapter 3 : Constants and Variables
    1. Constants and Variables - Data Types - Part 1
    2. Constants and Variables - Data Types - Part 2
  4. Chapter 4 : Strings
    1. Strings - Working with Strings and Their Properties and Methods - Part 1
    2. Strings - Working with Strings and Their Properties and Methods - Part 2
  5. Chapter 5 : Operators
    1. Operators - Part 1 - Unary, Binary, Ternary, Assign, and Compound
    2. Operators - Part 2 – Comparison, Nil, Range, and Logical
  6. Chapter 6 : Classes and Structs
    1. Classes and Structs - Part 1 - Syntax, Properties, and Initialization
    2. Classes and Structs - Part 2 - Value and Reference Types and Identity Operator
  7. Chapter 7 : Properties
    1. Properties Part 1 - Stored Properties
    2. Properties - Part 2 - Lazy Properties
    3. Properties - Part 3 - Computed Properties
    4. Properties - Part 4 - Property Observers
    5. Properties - Part 5 - Static Properties
  8. Chapter 8 : Initializers
    1. Initializers - Part 1 - Syntax - Value Type Delegation
    2. Initializers - Part 2 - Designated and Convenience Initializers
    3. Initializers - Part 3 - Initializer inheritance
    4. Initializers - Part 4 - Required and Failable Initializers
  9. Chapter 9 : Control Flow
    1. If and If-Else Statements
    2. Switch Statements
    3. Guard Statement
    4. For Loop
    5. While and Repeat While Loop
    6. Control Transfer Statements
  10. Chapter 10 : Functions
    1. Functions - Part 1 – Parameters, Arguments, and Return Values
    2. Functions - Part 2 - Returning Multiple Values
    3. Functions - Part 3 - Argument Labels and Parameter Names
    4. Functions - Part 4 – Variadic, In-out, and Nested Functions
  11. Chapter 11 : Collections
    1. Arrays
    2. Dictionaries
    3. Sets
  12. Chapter 12 : Optionals
    1. Optionals
  13. Chapter 13 : Tuples
    1. Tuples
  14. Chapter 14 : Enumerations
    1. Enums - Part 1 - Declaring and Iterating over Enum
    2. Enums - Part 2 - Associated and Raw Values
    3. Enums - Part 3 - Recursive Enumerations
  15. Chapter 15 : Error Handling
    1. Error Handling
  16. Chapter 16 : Stacks (VStack – HStack – ZStack)
    1. Stacks (VStack – HStack - ZStack)
  17. Chapter 17 : Text and Its Modifiers
    1. Text and Modifiers - Part 1
    2. Text and Modifiers - Part 2
    3. Text and Modifiers - Part 3
  18. Chapter 18 : TextField and State
    1. TextField and State
  19. Chapter 19 : Image and Its Modifiers
    1. Images and Modifiers - Part 1
    2. Images and Modifiers - Part 2
  20. Chapter 20 : The Dog Breed Application
    1. Dog Breed Application Introduction
    2. Dog Breed Application - Text, Image, View Modifiers, Stacks, Gradients, and Shapes – Part 1
    3. Dog Breed Application - Adding the Data, Text Labels, Icons, and the Identifiable Protocol – Part 2
    4. Dog Breed Application - Lists - Navigation - Creating and Populating Rows with Data – Part 3
    5. Dog Breed Application - Passing the Row Data to the Detail View – Part 4
  21. Chapter 21 : Weather Application
    1. Weather Application Introduction
    2. Weather Application - Getting the App ID, Setting Up the Data Model and Services – Part 1
    3. Weather Application - Creating the View Model Class – ObservableObject – Part 2
    4. Weather Application - Designing the User Interface (UI) – Part 3
    5. Weather Application – Refactoring – Part 4
    6. Weather Application - Adding Animation – Part 5
  22. Chapter 22 : Core Data and SwiftUI –To-Do List Application
    1. To-Do List Application Introduction
    2. To-Do List Application - Setting up Core Data – Part 1
    3. To-Do List Application - Setting Up the User Interface (UI) – Part 2
    4. To-Do List Application - Configuring the List Rows – Part 3
    5. To-Do List Application - Saving User data, Fetching and Displaying that Data – Part 4
    6. To-Do List Application - Deleting data - Dark Theme – Part 5
  23. Chapter 23 : Sunflower Application
    1. Sunflower Application Introduction
    2. Sunflower Application - Building the Sunflower Application – Part 1
    3. Sunflower Application - Adding the Animation – Part 2
    4. Sunflower Application - Creating the Settings Screen with Forms – Part 3
    5. Sunflower Application - Adding a Tab Bar to Navigate Between Screens – Part 4
    6. Sunflower Application - The EnvironmentObject - Controlling the Application Behavior through the Settings – Part 5
  24. Chapter 24 : Core ML –Dog Breed ID Application
    1. Introduction to the Dog Breed ID Application
    2. Dog Breed ID Application - Setting Up the User Interface (UI) – Part 1
    3. Dog Breed ID Application - Working with the Camera API – Part 2
    4. Dog Breed ID Application - Adding Core ML – Part 3
    5. Dog Breed ID Application - Updating the UI with Predictions – Part 4
  25. Chapter 25 : Guess the Color Application – A SwiftUI Game
    1. Guess the Color Application Introduction – A SwiftUI Game
    2. Guess the Color Application - Adding the Target and Guess Circles – Part 1
    3. Guess the Color Application - Adding the Picker and Target - Guess Rectangles – Part 2
    4. Guess the Color Application - Adding the Sliders and Button – Part 3
    5. Guess the Color Application - Adding a Reset - Scoring - Animation – Part 4
  26. Chapter 26 : Adding a Video Player to Your SwiftUI Application
    1. Just Relax - Introduction
    2. Creating a Class Player – Part 1
    3. Creating the Controls – Part 2
    4. Adding the Controls to the Player – Part 3
    5. Populating the Picker – Part 4
  27. Chapter 27 : Find Words – Building a Word Game that Gives the User the Choice of Three Languages
    1. Introduction
    2. Word Game - Setting Up - Creating a Header View – Part 1
    3. Word Game – Creating a User Settings Class and Settings View – Part 2
    4. Word Game - Adding a Picker View – Part 3
    5. Word Game- Adding a Button and Functions to Display Word – Part 4
    6. Word Game - Adding the TextField and List Views – Part 5
    7. Word Game - Giving the User Feedback Through Message Alerts – Part 6
    8. Word Game - Adding the Footer for Word Count and Average Letter per Word Views – Part 7
    9. Word Game - Adding a Launch Screen and Animating Gears – Part 8
    10. Word Game - Adding Haptic Feedback and Sound – Part 9

Product information

  • Title: SwiftUI - Build Amazing Apps - With Much Less Code
  • Author(s): Stephen DeStefano
  • Release date: December 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781801078948