I am using UIViewRepresentable and override the draw function. I use:
func updateUIView(_ uiView: UIView, context: Context) { uiView.setNeedsDisplay() }
to redraw the view after an orientation change. It has worked perfectly in iOS 14.5 but not in iOS 15. I have printed out the bounds and see that the bounds are not updated before updateUIView is called. I am using Xcode and the iPhone 12 simulator. I have filed a bug report. Is there a workaround?