I finally found a use for private SwiftUI APIs
Your link to the Github repo at the end doesn't seem to be working!
Probably would have been good if I made the repo public 🥲 try now!
Nice use case and one I may adopt 😅
Thank you! Definitely quite a niche API
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
Your link to the Github repo at the end doesn't seem to be working!
Probably would have been good if I made the repo public 🥲 try now!
Nice use case and one I may adopt 😅
Thank you! Definitely quite a niche API
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