I attempted to set modalPresentationStyle
to .fullscreen following the Apple Documentation.
After setting the modalPresentationStyle
to .fullscreen
shown in the code below, the system still presents the viewControllers in UIModalPresentationStyle.automatic
"the system default"
//Presentation Style
let homeVC = HomeController(viewModel: viewModel)
homeVC.modalPresentationStyle = UIModalPresentationStyle.fullScreen
A framework called XCoordinator controls navigation within this application, here is an example on how it is done.
switch route {
case .home:
let viewModel = HomeViewModelImpl(router: anyRouter)
let viewController = HomeController(viewModel: viewModel)
return .push(viewController)
}