EFStyleImageParamsAlign
public class EFStyleImageParamsAlign
Alignment pattern styling parameters for image-based QR codes.
This class defines the appearance of alignment patterns in image-based QR codes, including their style, size, and colors for dark and light modules.
## Usage
let align = EFStyleImageParamsAlign(
style: .rectangle,
size: 1.0,
colorDark: .black,
colorLight: .white
)
-
Default color for dark alignment pattern modules (black).
Declaration
Swift
public static let defaultColorDark: CGColor
-
Default color for light alignment pattern modules (white).
Declaration
Swift
public static let defaultColorLight: CGColor
-
Creates alignment pattern styling parameters.
Declaration
Swift
public init( style: EFStyleImageParamAlignStyle = .rectangle, size: CGFloat = 1, colorDark: CGColor = EFStyleImageParamsAlign.defaultColorDark, colorLight: CGColor = EFStyleImageParamsAlign.defaultColorLight )
Parameters
style
The style of the alignment pattern. Defaults to .rectangle.
size
The size of the alignment pattern. Defaults to 1.
colorDark
The color for dark alignment pattern modules. Defaults to default color dark.
colorLight
The color for light alignment pattern modules. Defaults to default color light.