EFStyleBasicParamsData

public class EFStyleBasicParamsData

Data module styling parameters for basic QR codes.

This class defines the appearance of data modules in QR codes, which encode the actual information content of the QR code.

  • Default color for data modules (black).

    Declaration

    Swift

    public static let defaultColor: CGColor
  • Creates data module styling parameters.

    Declaration

    Swift

    public init(
        style: EFStyleBasicParamsDataStyle = .rectangle,
        scale: CGFloat = 1,
        color: CGColor = EFStyleBasicParamsData.defaultColor
    )

    Parameters

    style

    The style of the data modules. Defaults to rectangle.

    scale

    The scale factor for data module size. Defaults to 1.0.

    color

    The color of the data modules. Defaults to black.