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