EFStyleBasicParamsTiming

public class EFStyleBasicParamsTiming

Timing pattern styling parameters for basic QR codes.

This class defines the appearance of timing patterns in QR codes, which are the alternating dark and light modules that help decoders locate the data modules.

  • Default color for timing patterns (black).

    Declaration

    Swift

    public static let defaultColor: CGColor
  • Creates timing pattern styling parameters.

    Declaration

    Swift

    public init(
        style: EFStyleParamTimingStyle = .rectangle,
        size: CGFloat = 1,
        color: CGColor = EFStyleBasicParamsTiming.defaultColor
    )

    Parameters

    style

    The style of the timing pattern. Defaults to rectangle.

    size

    The size of the timing pattern modules. Defaults to 1.0.

    color

    The color of the timing pattern. Defaults to black.