Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 371 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 371 Bytes

PopoverSwiftUI

Example SwiftUI app that forces popovers on all devices, including iPhones.

Forcing popovers can only be done in UIKit, by setting the presented view controller's popoverPresentationController.delegate and returning UIModalPresentationStyle.none from adaptivePresentationStyle(for:). The trick, then, is presenting a UIKit popover from SwiftUI.