Reading time: 2 min

This recipe shows how to use specify SwiftUI Colors with hex values, either hexadecimal numbers or strings. The end result can look like this:

preview

To make this work, you have to add two extensions to your codebase.

The first one allows you to specify a hex color from an Int, which you can conv...

Continue Reading...

Reading time: 2 min

This recipe shows all you need to do to support dark mode in your SwiftUI app. The end result looks like this:

preview

You should know that SwiftUI supports dark mode by default - which can be a blessing and a curse. Basically, if you're building a simple app without a lot of custom styling, most th...

Continue Reading...

Reading time: 2 min

This tutorial shows how to style a navigation bar in SwiftUI - changing its background color, text color, as well as styling the status bar. The end result looks like this:

This component is available as a Swift Package in this repo.

The gist of the work is in using a ViewModifier...

Continue Reading...