SwiftUI @ViewBuilder Result is a TupleView, How is Apple Using It And Able to Avoid Turning Things Into AnyVIew?

@ViewBuilder returns TupleView<T> where T is (tuple of views). I wonder what SwiftUI code looks like inside using tuple? In my code, I have to turn all the views into AnyView. I don't think Apple is doing this and throw away the type info carry inside the tuple.

How can I write my code with tuple of View and not use AnyView?

Terms of Service

Privacy Policy

Cookie Policy