Back to Browse

Creating an iOS Theme (SwiftUI + UIKit) | Intro

508 views
Apr 23, 2021
4:58

In this series I will demonstrate how to create a theme that can be used to handle colors and fonts for a SwiftUI app. The theme will be able to adapt to device and accessibility settings. The app demonstrated in this video is just an example and the series will focus create have a more real world example. Why create a theme? - Centralize logic. By changing the colors and fonts in a central theme we do not need to dig through our entire app to change individual fonts and colors - Adaptable. The theme will adapt colors and fonts to match the device (light / dark mode) and user preferences (accessibility). - Reusable. By separating our theme into its own module it helps separate the app logic from theming logic. We can easily copy and modify our theme into multiple projects. Repo: https://github.com/sparkcode-io/theme-example

Download

1 formats

Video Formats

360pmp46.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Creating an iOS Theme (SwiftUI + UIKit) | Intro | NatokHD