
UIKit from SwiftUI on the iPhone Duo
While updating Kotoba from a hospital bed, I encountered a problem while presenting a UIKit view from SwitfUI on the iPhone Duo – it totally stumped me. It’s one of those things that make sense once you discover the solution, but is unintuitive until then.
The main view in the app is written in SwiftUI and uses a couple of UIViewControllerRepresentable instances as sheets that are presented over the primary user interface. It looked like this:
The vertical navigation and scroll indicators were both inset from the trailing safe area. That’s not supposed to happen.
This is a simple…
The skinny
The skinny isn't ready yet — notes appear once the transcript is processed.