ViewController UIModalPresentationStyle Swift

Опубликовано: 05 Май 2021
на канале: iOS Shiga
2,133
19

Modal presentation styles available when presenting view controllers.

case .automatic
The default presentation style chosen by the system.
case .none
A presentation style that indicates no adaptations should be made.
case .fullScreen
A presentation style in which the presented view covers the screen.
case .pageSheet
A presentation style that partially covers the underlying content.
case .formSheet
A presentation style that displays the content centered in the screen.
case .currentContext
A presentation style where the content is displayed over another view controller’s content.
case .custom
A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects.
case .overFullScreen
A view presentation style in which the presented view covers the screen.
case .overCurrentContext
A presentation style where the content is displayed over another view controller’s content.
case .popover
A presentation style where the content is displayed in a popover view.