PresentationMode
public struct PresentationMode
A type that represents the presentation mode of a view.
-
Indicates whether a view is currently presented.
Declaration
Swift
public internal(set) var isPresented: Bool { get } -
Dismisses the view if it is currently presented.
If
isPresentedis false,dismiss()is a no-op.Declaration
Swift
public func dismiss()
View on GitHub
PresentationMode Structure Reference