Design+Code logo

Quick links

No results found

Suggested search

illustration

Custom Fonts

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

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

Aside from providing system fonts, SwiftUI also gives you the option of adding custom fonts. In this tutorial, you'll learn how to add a custom font from Google Fonts and use in your project.

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

Meet the instructor

We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.

Meng To

I design, code and write

Meng To is the author of Design+Code. Meng started off his career as a self-taught designer from Montreal and eventually traveled around the world for 2 years as his US VISA was denied. During his travels, he wrote a book which now has 35,000 readers.

icon

27 courses - 125 hours

course logo

React Livestreams

Learn how we can use React Hooks to build web apps using libraries, tools, apis and frameworks

4 hrs

course logo

Design Founder Livestreams

A journey on how we built DesignCode covering product design, management, analytics, revenue and a good dose of learning from our successes and failures

2 hrs

course logo

SwiftUI Advanced Handbook

An extensive series of tutorials covering advanced topics related to SwiftUI, with a main focus on backend and logic to take your SwiftUI skills to the next level

3 hrs

course logo

iOS Design Handbook

A complete guide to designing for iOS 14 with videos, examples and design files

2 hrs

course logo

SwiftUI Handbook

A comprehensive series of tutorials covering Xcode, SwiftUI and all the layout and development techniques

5 hrs

course logo

Build a web app with React Hooks

Learn how we built the new Design+Code site with React Hooks using Gatsby, Netlify, and advanced CSS techniques with Styled Components.

4 hrs

course logo

Figma Handbook

A comprehensive guide to the best tips and tricks in Figma

1 hrs

course logo

UI Design Handbook

A comprehensive guide to the best tips and tricks for UI design. Free tutorials for learning user interface design.

2 hrs

course logo

SwiftUI for iOS 14

Build a multi-platform app from scratch using the new techniques in iOS 14. We'll use the Sidebar and Lazy Grids to make the layout adaptive for iOS, iPadOS, macOS Big Sur and we'll learn the new Matched Geometry Effect to create beautiful transitions between screens without the complexity. This course is beginner-friendly and is taught step-by-step in a video format.

3 hrs

course logo

SwiftUI Livestreams

This is a compilation of the SwiftUI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.

17 hrs

course logo

UI Design Livestreams

This is a compilation of the UI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.

22 hrs

course logo

UI Design for Developers

In this course we'll learn how to use design systems, set up break points, typography, spacing, navigation, size rules for adapting to the iPad, mobile and web versions, and different techniques that translate well from design to code.

3 hrs

course logo

Build an app with SwiftUI Part 3

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

Build an app with SwiftUI Part 2

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

Build a full site in Webflow

Webflow is a design tool that can build production-ready experiences without code. You can implement CSS-driven adaptive layouts, build complex interactions and deploy all in one tool. Webflow also comes with a built-in content management system (CMS) and Ecommerce for creating a purchase experience without the need of third-party tools.

3 hrs

course logo

Advanced Prototyping in ProtoPie

ProtoPie is a cross-platform prototyping tool that creates prototypes nearly as powerful as those made with code, with half of the efforts, and zero code. It's perfect for designers who want to quickly experiment with advanced interactions using variables, conditions, sensors and more.

3 hrs

course logo

Build an app with SwiftUI Part 1

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

UI Interactions in Framer Playground

Framer makes it incredibly easy to add complex user interactions inside your prototype, taking your design and code components to the next level. Playground allows you to quickly test new concepts within the all-new in-app code editor. You can combine your current app flow with new code components created in Playground.

3 hrs

course logo

React Native for Designers Part 2

React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.

3 hrs

course logo

React Native for Designers

React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.

5 hrs

course logo

Design and Code in Framer X

Create powerful design and code components for your app and design system. Framer X is the only design tool to allows you to create code components that can be used in a React site. Developers can truly collaborate with designers in creating consistent and production-ready components.

3 hrs

course logo

Design System in Figma

Learn how to use and design a collaborative and powerful design system in Figma. Design Systems provide a shared library of reusable components and guidelines and that will let you build products much faster

3 hrs

course logo

React for Designers

Learn how to build a modern site using React and the most efficient libraries to get your site/product online. Get familiar with Grid CSS, animations, interactions, dynamic data with Contentful and deploying your site with Netlify.

3 hrs

course logo

Swift Advanced

Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch

9 hrs

course logo

Learn Swift

Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch

4 hrs

course logo

Learn Sketch

Learn Sketch a design tool entirely vector-based and focused on user interface design

5 hrs

course logo

Learn iOS 11 Design

Learn colors, typography and layout for iOS 8

1 hrs