Contents

isModalInPresentation

A Boolean value indicating whether the view controller enforces a modal behavior.

Declaration

var isModalInPresentation: Bool { get set }

Discussion

The default value of this property is false. When you set it to true, UIKit ignores events outside the view controller’s bounds and prevents the interactive dismissal of the view controller while it is onscreen.

See Also

Related Documentation

Presenting a view controller