Compile Swift Logo

Changing SwiftUI Modifiers Based on State

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 the GitHub repo.

In this video I mention a forums.swift.org post, you can find that post here.

Back

Copyright 2024 PeterWitham

Facebook Instagram Twitter Mastodon GitHub