diff --git a/Mastodon/Scene/Notification/NotificationViewController.swift b/Mastodon/Scene/Notification/NotificationViewController.swift index 6376fc5a1..44c9d29d8 100644 --- a/Mastodon/Scene/Notification/NotificationViewController.swift +++ b/Mastodon/Scene/Notification/NotificationViewController.swift @@ -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) } }