This is part of the "iOS User Interfaces with SwiftUI" learning path. View Path

SwiftUI Fundamentals

Dec 1 2020 · Video Course (1 hr, 24 mins) · Beginner

Get an introduction to building iOS user interfaces with SwiftUI! Learn about SwiftUI Views, modifiers, essential layout tools, navigation, data flow, and previews.

5/5 23 Ratings

Version

  • Swift 5.3, iOS 14, Xcode 12

SwiftUI Views

Introduction

2:52 Free

In this introductory episode, find out a bit about SwiftUI in general, and what you can learn from this course.

1

The View Protocol

5:48 Free

The View protocol is the foundational building block of SwiftUI. Get a SwiftUI app running, and try out some of SwiftUI's basic components, built on View.

2

Modifiers

5:27

Modifiers can change the appearance and functionality of your SwiftUI views. Find out how they work, and how to chain them together.

3

In your first hands-on challenge, practice everything you've learned about views and modifiers, and try out a few new SwiftUI controls.

4

Take a deep-dive into what's going on with the state attribute and how it operates under the hood when binding to your components.

5

Take a deep-dive into what's going on with the state attribute and how it operates under the hood when binding to your components.

6

Learn how to control the layout of multiple views by grouping them together with HStacks and VStacks.

7

ForEach & Lists make it a breeze when iterating over a collection of data to produce similar SwiftUI Views. All you need is a unique ID for each element.

8

Test your understanding of layout with stacks, and your command of ForEach, in this hands-on challenge.

9

Navigation & Data Flow

Take in a high-level overview of navigation and data flow in SwiftUI, and find out what you'll learn in this part of the course.

10

Navigation

4:01

Navigating from one part of your app to another has never been easier thanks the Navigation component. Here you'll get started with moving around your apps.

11

There's more than one way to present a view with SwiftUI! Learn how to use a new kind of modifier to present different types of modal views.

12

In this hands-on challenge, practice everything you have learned about navigation and state in a SwiftUI app.

13

@State only works with value types, but it does have a companion specifically for reference types: @StateObject.

14

Combine makes it easy to take an object, observe changes to its properties, and react to those changes, in SwiftUI.

15

An environment is a storage container for potentially any information that multiple views need to function.

16

Conclusion

0:38

In the conclusion to this course, review what you've learned and find out where you can go to learn more about making apps with SwiftUI.

17

Next course in this Learning Path

Who is this for?

This course will be most helpful for beginner to intermediate iOS developers who are familiar with Swift and have some experience in iOS development.

For students who have finished the iOS and SwiftUI for Beginners learning path, this course can help you review SwiftUI concepts at a faster pace before you move on to more advanced SwiftUI topics.

Covered concepts

  • SwiftUI View protocol
  • Common SwiftUI controls
  • Previews
  • SwiftUI Layout with Stacks
  • ScrollView
  • ForEach & List
  • NavigationView
  • Sheet & Popover
  • Property wrappers
  • View builders
  • SwiftUI Environment
  • SwiftUI Bindings
  • Combine: Published and Observable Objects

Contributors

Comments