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
styleThe style of the alignment pattern. Defaults to .rectangle.
sizeThe size of the alignment pattern. Defaults to 1.
colorDarkThe color for dark alignment pattern modules. Defaults to default color dark.
colorLightThe color for light alignment pattern modules. Defaults to default color light.
View on GitHub
Install in Dash