EFStyleParamBackdrop

public class EFStyleParamBackdrop

Backdrop configuration for QR codes.

  • Default color for backdrop (white).

    Declaration

    Swift

    public static let defaultColor: CGColor
  • Creates a backdrop configuration for QR codes.

    Declaration

    Swift

    public init(
        cornerRadius: CGFloat = 0,
        color: CGColor = EFStyleParamBackdrop.defaultColor,
        image: EFStyleParamBackdropImage? = nil,
        quietzone: EFEdgeInsets? = nil
    )

    Parameters

    cornerRadius

    The corner radius of the backdrop. Defaults to 0.

    color

    The color of the backdrop. Defaults to white.

    image

    The image to use as backdrop. Defaults to nil.

    quietzone

    The quiet zone insets around the QR code. Defaults to nil.