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
Couldn’t this be done with ScrollView and Group?
```
ScrollView {
Group {
// …
}
.inverted() // your implementation
There’s also [Group\(subviews:transform:\)](https://developer.apple.com/documentation/swiftui/group/init\(subviews:transform:\)).
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
Couldn’t this be done with ScrollView and Group?
```
ScrollView {
Group {
// …
}
.inverted() // your implementation
}
.inverted() // your implementation
```
There’s also [Group\(subviews:transform:\)](https://developer.apple.com/documentation/swiftui/group/init\(subviews:transform:\)).
Couldn’t this be done with ScrollView and Group?
```
ScrollView {
Group {
// …
}
.inverted() // your implementation
}
.inverted() // your implementation
```
There’s also [Group\(subviews:transform:\)](https://developer.apple.com/documentation/swiftui/group/init\(subviews:transform:\)).
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