UIKit from SwiftUI on the iPhone Duo 0 ▲ furbo.org 56 minutes ago · Tech · hide 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 table view with a sharing icon in the left bar button item and a Done button in the right item. As basic as it gets in the land of UIKit. I checked and double-checked the constraints on the views but no changes to the storyboard improved what I saw in the Simulator. So I started to dig into the view that was presenting the view controller and immediately saw a problem. The table view is used as a… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town