Fix detens (IOS-241)

This commit is contained in:
Nathan Mattes 2024-06-25 10:08:52 +02:00
parent 3118861984
commit f297cbabc5
1 changed files with 3 additions and 2 deletions

View File

@ -121,12 +121,13 @@ extension NotificationViewController {
//TODO: Move to SceneCoordinator
let notificationPolicyViewController = NotificationPolicyViewController()
notificationPolicyViewController.modalPresentationStyle = .formSheet
let navigationController = UINavigationController(rootViewController: notificationPolicyViewController)
if let sheet = notificationPolicyViewController.sheetPresentationController {
if let sheet = navigationController.sheetPresentationController {
sheet.detents = [.medium(), .large()]
}
present(UINavigationController(rootViewController: notificationPolicyViewController), animated: true)
present(navigationController, animated: true)
}
}