ImagePreview

public struct ImagePreview : View

SwiftUI view to preview an image

  • Initializer

    Declaration

    Swift

    public init(preview: Image, contentMode: SwiftUI.ContentMode = .fill)

    Parameters

    preview

    image to be displayed

    contentMode

    contentMode of the image

  • SwiftUI’s view body

    Declaration

    Swift

    public var body: some View { get }