Automate Your Builds and Testing with Bitrise

Changing SwiftUI Modifiers Based on State

December 14, 2020 · 1 min read

In this video, I show you have to add/change modifiers on a SwiftUI view based on a condition in your application state. There are times you want to change the look of something based on view state, this is one way to do it.

The repository for the project in this video can be found here

In this video I mention a post, you can find that post here

Peter Witham

Web and Mobile Software Maker, Photographer and Podcaster. I live and breath creativity.
I'd love for you to connect with me via Twitter or if you are a photo person like myself, Instagram.