EFStyleImageParamsData

public class EFStyleImageParamsData

Data module styling parameters for image-based QR codes.

This class defines the appearance of data modules in image-based QR codes, including their style, scale, and colors for dark and light modules.

## Usage

 let data = EFStyleImageParamsData(
     style: .rectangle,
     scale: 1.0,
     colorDark: .black,
     colorLight: .white
 )
  • Default color for dark data modules (black).

    Declaration

    Swift

    public static let defaultColorDark: CGColor
  • Default color for light data modules (white).

    Declaration

    Swift

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

    Declaration

    Swift

    public init(
        style: EFStyleParamsDataStyle = .rectangle,
        scale: CGFloat = 1,
        colorDark: CGColor = EFStyleImageParamsData.defaultColorDark,
        colorLight: CGColor = EFStyleImageParamsData.defaultColorLight
    )

    Parameters

    style

    The style of the data module. Defaults to .rectangle.

    scale

    The scale of the data module. Defaults to 1.

    colorDark

    The color for dark data modules. Defaults to default color dark.

    colorLight

    The color for light data modules. Defaults to default color light.