Fix detens (IOS-241)
This commit is contained in:
parent
3118861984
commit
f297cbabc5
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue