I have a custom modifier to handle show/hide keyboard, but when running on iOS 13 it doesn't render the view, after some investigation I found that the cause is a usage of GeometryReader in a ViewModifier.
The following code will result in a blank screen:
struct ContentView: View {
var body: some View {
Text("Foo")
.modifier(MyCustomModifier())
}
}
struct MyCustomModifier: ViewModifier {
func body(content: Content) -> some View {
GeometryReader { proxy in
content
// Use proxy
}
}
}
It happens only for iOS 13 and only if the code is compiled with Xcode 12.