5 Comments
User's avatar
⭠ Return to thread
Mirko Tomic's avatar

In iOS 18 you can do this with new containers API, view builder is now iterable, but your implementation will probably work in more iOS versions.

https://developer.apple.com/documentation/SwiftUI/Creating-custom-container-views

Expand full comment