The final part of the effect is to get the toolbar and page to move together as one. SwiftUI toolbars are anchored to their parent NavigationStack, so are unaffected by any page movements.
The trick here was to implement my own replica toolbar, and embed it in the safe area of the page.
@phill How did you manage to get the devices corner radius? Did you have to manually determine it with each device and build a manual check, or did something like ContainerRelativeShape work out?
@anthony there is a private property on UIScreen called _displayCornerRadius which you should definitely not use.
@phill ahh noted 😉
@phill this is actually fantastic 🤩
@phill maybe for all the font newsletters I get.
@phill `safeAreaInset(…)` is such a neat modifier. Cool effect!
Have you ever wanted your inbox to be an eBook?
Me neither.