Conditionally apply modifier in SwiftUI

If you don't like AnyView you can also use TupleView with optionals. Is it faster? I have no idea. Same usage as in your last post

extension View {
    func `if`<Content: View>(_ conditional: Bool, content: (Self) -> Content) -> TupleView<(Self?, Content?)> {
        if conditional {
            return TupleView((nil, content(self)))
        } else {
            return TupleView((self, nil))
        }
    }
}