Conditional modifiers – Views and Modifiers SwiftUI Tutorial 5/10

preview_player
Показать описание

Other parts in Project 3:

5. Conditional modifiers: This video

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

I'd recommend whatever preserves structural identity, including moving a conditional application of another view modifier into your own custom modifier

HaackSpeed
Автор

@twostraws
Is it possible to conditionally apply a modifier? Ie if (true) -> apply modifier, else (don't modify)

eqprog