Show modal on ipad (IOS-241)

This commit is contained in:
Nathan Mattes 2024-07-24 16:01:25 +02:00
parent 1bf763a94c
commit 9da5b99b28
1 changed files with 9 additions and 1 deletions

View File

@ -17,7 +17,15 @@ extension DataSourceFacade {
provider.coordinator.hideLoading()
provider.coordinator.present(scene: .notificationRequests(viewModel: viewModel), transition: .show)
let transition: SceneCoordinator.Transition
if provider.traitCollection.userInterfaceIdiom == .phone {
transition = .show
} else {
transition = .modal(animated: true)
}
provider.coordinator.present(scene: .notificationRequests(viewModel: viewModel), transition: transition)
} catch {
//TODO: Error Handling
provider.coordinator.hideLoading()