LargeContentViewerConfiguration

public struct LargeContentViewerConfiguration
  • Declaration

    Swift

    public enum Display : Equatable
  • Title and/or image to display in the large content viewer.

    Declaration

    Swift

    public var display: Display
  • Whether the image should be scaled in the large content viewer.

    Declaration

    Swift

    public var scalesLargeContentImage: Bool
  • The insets to apply to the large content image.

    Declaration

    Swift

    public var largeContentImageInsets: UIEdgeInsets
  • The callback to be called when the interaction ends on this item. The point (within the coordinate space of the element) at which the interaction ended is provided as the argument.

    Declaration

    Swift

    public var interactionEndedCallback: ((CGPoint) -> Void)?
  • Declaration

    Swift

    public init(
        display: Display,
        scalesLargeContentImage: Bool = false,
        largeContentImageInsets: UIEdgeInsets = .zero,
        interactionEndedCallback: ((CGPoint) -> Void)? = nil
    )