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