Make modal fullscreen

This commit is contained in:
ismailgulek
2020-08-06 16:34:21 +03:00
parent 39071d7556
commit 4e6595fda3
2 changed files with 5 additions and 6 deletions
@@ -67,11 +67,6 @@ final class EnterPinCodeViewController: UIViewController {
self.update(theme: self.theme)
self.viewModel.viewDelegate = self
if #available(iOS 13.0, *) {
modalPresentationStyle = .fullScreen
isModalInPresentation = true
}
self.viewModel.process(viewAction: .loadData)
}
@@ -70,7 +70,11 @@ final class SetPinCoordinator: SetPinCoordinatorType {
}
func toPresentable() -> UIViewController {
return self.navigationRouter.toPresentable()
let controller = self.navigationRouter.toPresentable()
if #available(iOS 13.0, *) {
controller.modalPresentationStyle = .fullScreen
}
return controller
}
// MARK: - Private methods