Post

Replies

Boosts

Views

Activity

Issue with UIKit windows on Xcode 11 and iOS 13 beta 2
When presenting content on a new window, it automatically dismisses itself.I'm presenting a ViewController in a new window with something like the following extension:extension UIViewController { func present() { let window = UIWindow(frame: UIScreen,main.bounds) let viewController = UIViewController() viewController.view.background = .clear window.rootViewController = viewController window.windowLevel = UIWindow.level.alert + 1 window.makeKeyAndVisible() viewController.present(self, animated: true, completion: nil) } }I can see the following coming up in the debugger. 0000-00-00 00:00:00.000000+0000 App[0000] [TraitCollection] Class _UIFormSheetPresentationController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API. 0000-00-00 00:00:00.000000+0000 App[0000] [TraitCollection] Class _UIPageSheetPresentationController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.Anyone seen anything similar? Are the new scenes acting up here? I'm quite certain this behaviour did not occur on iOS 13 beta 1
6
0
4.2k
Jun ’19