ImagePreview
public struct ImagePreview : View
SwiftUI view to preview an image
-
Initializer
Declaration
Swift
public init(preview: Image, contentMode: SwiftUI.ContentMode = .fill)Parameters
previewimage to be displayed
contentModecontentMode of the image
-
SwiftUI’s view body
Declaration
Swift
public var body: some View { get }