'SwiftUI buttons not tappable when presented from UIKit

Seeing some weird issue with a swiftUIView where button taps are no longer working when presented from a UIKit controller. Basically presenting it from a navigationItem, the swiftUIView populates fine but none of the buttons are tappable. Currently testing this on the simulator

let settingsButton = UIBarButtonItem(title: nil, image: UIImage(systemName: "gearshape"), primaryAction: UIAction(handler: { [weak self] _ in
    guard let self = self else { return }
    let controller = UIHostingController(rootView: SettingsView(storeManager: self.storeManager))
    self.navigationController?.present(controller, animated: true, completion: nil)
}))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source