Design+Code logo

Quick links

No results found

Suggested search

illustration

AsyncImage

Load remote images using AsyncImage

icon

SwiftUI Handbook

1

Visual Editor in Xcode

5:42

2

Stacks and Spacer

6:26

3

Import Images to Assets Catalog

5:16

4

Shapes and Stroke

6:26

5

SF Symbols

4:23

6

Color Literal and Image Literal

4:28

7

Sidebar

6:19

8

Toolbar

4:04

9

Image View

3:16

10

Safe Area Layout

3:17

11

Text View

6:31

12

Custom Fonts

3:29

13

Max Width and Frame Alignment

3:17

14

Shadows and Color Opacity

5:05

15

Mask and Transparency

4:04

16

Clip Shape and Smooth Corners

2:27

17

Tab View Pagination

2:18

18

Animation States

4:51

19

View Transitions and Animations

3:23

20

Animation Modifier and Timing

6:05

21

Transform Animations

5:00

22

Tap Animation with Delay

3:34

23

Long Press Gesture

4:19

24

Drag Gesture

3:56

25

Matched Geometry Effect

7:45

26

Advanced Matched Geometry Effect

6:46

27

Swift Package Manager

4:02

28

Background Blur

3:45

29

Lottie Animation

8:34

30

Lazy Grid Layout

7:41

31

Lazy Stacks

3:50

32

Navigation View

4:07

33

Link

3:01

34

Color Picker

4:21

35

Date Picker

3:15

36

Hover Effects

5:49

37

Components

4:12

38

Binding

3:28

39

Static Data

4:09

40

Full Screen Modal

3:14

41

Hide Status Bar

1:19

42

Redacted Placeholder

3:24

43

Horizontal Scroll with rotate3DEffect

6:41

44

Animation Repeat, Delay and Speed

4:49

45

Tab Selection from Child View

4:01

46

Status Bar Size with GeometryReader

3:31

47

Modal Presentation

2:18

48

Remote Images

3:15

49

Dismiss custom modal

3:18

50

Iterating Over an Array

2:42

51

Switch Statement

2:25

52

Format Date

4:53

53

UserDefaults

2:59

54

Hide Keyboard

2:22

55

Play Video with AVPlayer

3:13

56

Controls with AVPlayer

5:12

57

OnScroll listener

3:31

58

Link from a Text

3:06

59

Share Sheet

2:30

60

Strings in Swift

3:51

61

Xcode Playground

2:06

62

AppStorage

2:29

63

Action sheet

3:21

64

TabBar scroll to top

6:57

65

TabBar to root View

6:16

66

Status bar background on scroll

3:39

67

Create a Widget

1:38

68

ContainerRelativeShape

2:54

69

WidgetFamily sizes

3:06

70

SwiftUI Picker

4:17

71

Conditional modifier

4:26

72

Load Safari Inside App

3:54

73

Markdown with AttributedString

2:55

74

AttributeContainer

2:59

75

AsyncImage

2:44

76

Format Date with Formatted

2:30

77

List Row Separators

3:00

78

Swipe actions

4:35

79

Searchable

4:06

Starting from SwiftUI 3.0, loading remote images in an application doesn't require a third-party package anymore: it's built-in with AsyncImage! In this section, we'll take a look at this new view and learn how easy it is to implement it.

Purchase includes access to 30+ courses, 100+ premium tutorials, 120+ hours of videos, source files and certificates.

Learn with videos and source files. Available to Pro subscribers only.

Purchase includes access to 30+ courses, 100+ premium tutorials, 120+ hours of videos, source files and certificates.

Templates and source code

Download source files

Download the videos and assets to refer and learn offline without interuption.

check

Design template

check

Source code for all sections

check

Video files, ePub and subtitles

Browse all downloads

1

Visual Editor in Xcode

Design your layout using the inspector, insert menu and modifiers

5:42

2

Stacks and Spacer

Learn how to use HStack, VStack, ZStack with spacing and alignment

6:26

3

Import Images to Assets Catalog

How to import images from Figma to Xcode using PDF, PNG and JPG

5:16

4

Shapes and Stroke

How to use shapes like circle, ellipse, capsule, rectangle and rounded rectangle

6:26

5

SF Symbols

How to use system icons for Apple platforms with different size, scale and multicolor

4:23

6

Color Literal and Image Literal

Use the color picker and images list to set your colors and images directly in the code

4:28

7

Sidebar

Learn how to create a Sidebar navigation for iOS, iPadOS and macOS

6:19

8

Toolbar

Use the Toolbar modifier to place multiple items in the navigation bar or bottom bar

4:04

9

Image View

How to work with the Image View and its resizable, aspectRatio, scaleToFit and resizingMode options

3:16

10

Safe Area Layout

How to ignore the Safe Area edges in a typical layout with a background

3:17

11

Text View

A deep dive into how to use the Text View and its modifiers such as font, color, alignment, line spacing and multiple lines

6:31

12

Custom Fonts

How to set a custom font in iOS using info.plist and the font modifier

3:29

13

Max Width and Frame Alignment

An alternative to stacks and spacer is to use frame max width and alignment to avoid the pyramid of doom

3:17

14

Shadows and Color Opacity

The most flexible way to add shadows to your UI in SwiftUI

5:05

15

Mask and Transparency

How to use mask to clip the content with opacity and gradient

4:04

16

Clip Shape and Smooth Corners

How to create a continuous corner radius, also known as super ellipse

2:27

17

Tab View Pagination

Create a simple user onboarding layout using Tab View with the PageTabViewStyle

2:18

18

Animation States

How to set up a simple animation using states, toggle, withAnimation and onTapGesture

4:51

19

View Transitions and Animations

Animate your screens using the transition modifier and preset animations

3:23

20

Animation Modifier and Timing

How to apply a different animation timing on separate elements using the animation modifier

6:05

21

Transform Animations

How to animate a card using offset, scaleEffect, rotationEffect and rotation3DEffect

5:00

22

Tap Animation with Delay

Expand and contract a button using the tap gesture with delay

3:34

23

Long Press Gesture

Detect the long press duration to expand a button and bounce back

4:19

24

Drag Gesture

Learn how to create a draggable card using DragGesture, onChange, onEnded events and the offset modifier

3:56

25

Matched Geometry Effect

Create a custom transition between views using the matchedGeometryEffect modifier, namespace and id

7:45

26

Advanced Matched Geometry Effect

Recreate the Music app transition using matched geometry effect and learn how to pass Namespace to another view

6:46

27

Swift Package Manager

How to install SwiftUI packages using the Swift Package Manager

4:02

28

Background Blur

How to apply a frosted glass sheet in your user interface using Apple's sample code

3:45

29

Lottie Animation

How to add animated assets using Lottie in SwiftUI

8:34

30

Lazy Grid Layout

Learn how to build an adaptive or fixed grid layout that expands vertically or horizontally

7:41

31

Lazy Stacks

Get better scroll performance by using LazyHStack and LazyVStack instead of HStack and VStack

3:50

32

Navigation View

Create a native navigation for your app using the nav bar, large title and swipe gesture

4:07

33

Link

Learn how to open a URL in the Safari browser and how to customize your Link

3:01

34

Color Picker

How to set and customize the native color picker in SwiftUI

4:21

35

Date Picker

How to let users pick a date and time using a dropdown wheel or a calendar style

3:15

36

Hover Effects

How to design for iPadOS pointer using hoverEffect and onHover

5:49

37

Components

How to create reusable components by using the Extract Subview option in SwiftUI

4:12

38

Binding

How to synchronize states across multiple views and set the constant for your preview

3:28

39

Static Data

Work with static data in SwiftUI.

4:09

40

Full Screen Modal

How to present a full screen modal without the sheets UI

3:14

41

Hide Status Bar

How to hide your app's status bar with or without animation

1:19

42

Redacted Placeholder

Create a placeholder UI while loading using the redacted modifier

3:24

43

Horizontal Scroll with rotate3DEffect

How to apply a beautiful 3D transform while scrolling in SwiftUI

6:41

44

Animation Repeat, Delay and Speed

How to loop and delay your animation using repeat, repeatForever, speed and delay

4:49

45

Tab Selection from Child View

How to programmatically link to another tab from any child view in SwiftUI

4:01

46

Status Bar Size with GeometryReader

Using SafeAreaInsets, you can get the height of the status bar, tab bar dynamically

3:31

47

Modal Presentation

Use the .sheet modifier to show a modal

2:18

48

Remote Images

Load images from the Internet in your SwiftUI application with SDWebImage

3:15

49

Dismiss custom modal

Create an "OnTapOutside" listener on dismiss a custom modal

3:18

50

Iterating Over an Array

Use ForEach to loop through an array in a View and in a function

2:42

51

Switch Statement

Learn how to use switch statements in Swift

2:25

52

Format Date

Transform how dates are displayed in your application by using a Date Extension and DateFormatter

4:53

53

UserDefaults

Cache your user's data with UserDefaults

2:59

54

Hide Keyboard

Use a View extension to dismiss the keyboard when the user taps outside of the keyboard area

2:22

55

Play Video with AVPlayer

Add a video or an audio player to your SwiftUI application by using AVPlayer and AVKit

3:13

56

Controls with AVPlayer

Play, pause, change the video speed, get the current time or the duration, and add subtitles to a video, all using AVPlayer

5:12

57

OnScroll listener

Use SwiftUITrackableScrollView to add a listener when the user scrolls

3:31

58

Link from a Text

Open a web page in Safari when the user clicks on a link in your SwiftUI application

3:06

59

Share Sheet

Call Apple's share sheet when the user clicks on a button

2:30

60

Strings in Swift

Learn the basics of Strings in Swift and how to manipulate them

3:51

61

Xcode Playground

Use Xcode Playground to test your Swift functions and save time

2:06

62

AppStorage

Use the newly introduced AppStorage to add to UserDefaults

2:29

63

Action sheet

Show an action sheet with multiple options for the user to choose from

3:21

64

TabBar scroll to top

Programmatically scroll to top when the user taps more than once on the the tab bar

6:57

65

TabBar to root View

Learn how to programmatically go back to the root View when the user taps on the tab item twice

6:16

66

Status bar background on scroll

Learn how to add a background color on the status bar while the user is scrolling

3:39

67

Create a Widget

Add widget to your existing SwiftUI project with custom data

1:38

68

ContainerRelativeShape

Adding an adaptive radius to a widget

2:54

69

WidgetFamily sizes

Adding support for various family sizes in a widget

3:06

70

SwiftUI Picker

Create a wheel picker using SwiftUI's built-in Picker, to allow the user to select from multiple choices

4:17

71

Conditional modifier

Learn different ways to add a conditional modifier to your SwiftUI view

4:26

72

Load Safari Inside App

Load Safari as a fullScreenCover inside of your application

3:54

73

Markdown with AttributedString

Use AttributedString to generate formatted text from markdown

2:55

74

AttributeContainer

Style AttributedStrings with AttributeContainer

2:59

75

AsyncImage

Load remote images using AsyncImage

2:44

76

Format Date with Formatted

Use SwiftUI 3.0's .formatted() function to format a date

2:30

77

List Row Separators

Customize list row separators

3:00

78

Swipe actions

Easily add swipe actions to a row in a list

4:35

79

Searchable

Effortlessly search through a list

4:06