I’m trying to present a viewcontroller as a sheet over the current controller. Created a test empty project and using this code:
let modal = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(identifier: "modal")
modal.modalPresentationStyle = .formSheet
present(modal, animated: true)
The result ok:
But when I replicate this in one of my existing apps, it always shows the second viewcontroller as a full screen:
Is it possible that this is due to some global configuration? how can I solve that?