Fix detens (IOS-241)
This commit is contained in:
parent
3118861984
commit
f297cbabc5
|
@ -121,12 +121,13 @@ extension NotificationViewController {
|
||||||
//TODO: Move to SceneCoordinator
|
//TODO: Move to SceneCoordinator
|
||||||
let notificationPolicyViewController = NotificationPolicyViewController()
|
let notificationPolicyViewController = NotificationPolicyViewController()
|
||||||
notificationPolicyViewController.modalPresentationStyle = .formSheet
|
notificationPolicyViewController.modalPresentationStyle = .formSheet
|
||||||
|
let navigationController = UINavigationController(rootViewController: notificationPolicyViewController)
|
||||||
|
|
||||||
if let sheet = notificationPolicyViewController.sheetPresentationController {
|
if let sheet = navigationController.sheetPresentationController {
|
||||||
sheet.detents = [.medium(), .large()]
|
sheet.detents = [.medium(), .large()]
|
||||||
}
|
}
|
||||||
|
|
||||||
present(UINavigationController(rootViewController: notificationPolicyViewController), animated: true)
|
present(navigationController, animated: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue