ModalDismissBehaviour

public enum ModalDismissBehaviour

Define one of the two possible behaviours when dismissing a modal ViewController:

.soft: dismiss the ViewController but keep all the presented ViewControllers

.hard: the usual UIKit behaviour, dismiss the ViewController and all the ViewControllers that is presenting

  • If the targeted modal is presenting other modals, keep them alive.

    Declaration

    Swift

    case soft
  • While removing the targeted modal, remove also all the modals that it is presenting.

    Declaration

    Swift

    case hard