import SwiftUI extension View { @ViewBuilder func `if`(_ predicate: Bool, then: (Self) -> Other) -> some View { if predicate { then(self) } else { self } } }