Show modal on ipad (IOS-241)
This commit is contained in:
parent
1bf763a94c
commit
9da5b99b28
|
@ -17,7 +17,15 @@ extension DataSourceFacade {
|
||||||
|
|
||||||
provider.coordinator.hideLoading()
|
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 {
|
} catch {
|
||||||
//TODO: Error Handling
|
//TODO: Error Handling
|
||||||
provider.coordinator.hideLoading()
|
provider.coordinator.hideLoading()
|
||||||
|
|
Loading…
Reference in New Issue