(OLD) Conditional modifiers – Views and Modifiers SwiftUI Tutorial 5/10

preview_player
Показать описание
In this project we take a close look at how views and view modifiers work in SwiftUI.

Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Thanks for these videos!!
I figured ternary is the right way to go, but if you wanted to do multiple conditionals (let’s say four colors based on a state or property) whats the ideal way to deal with that? I assume you can do multiple ternary, but is there a cleaner way?

Sinb