UIViewRepresentables must be value types
At work, I inherited some SwiftUI code to maintain. The following code is simplified.
final class MySwiftUIViewWrappingUIView: UIViewRepresentable {
// ...
}
The existing code works fine running on iOS 15. But running the same code on iOS 16 wil...
blog.eidinger.info1 min read
Igor
And yet you write “Code using a struct conforming to View will compile but will cause a runtime exception…” ))