EFQRCodeStyleRandomRectangle
public class EFQRCodeStyleRandomRectangle : EFQRCodeStyleBase
Random rectangle QR code implementation.
This class implements the random rectangle QR code rendering, creating QR codes with randomly sized and colored rectangles for each dark module. This creates QR codes with a unique, artistic appearance.
## Features
- Random rectangle generation for dark modules
- Variable sizes and colors based on base color
- Artistic, non-uniform appearance
- Icon and backdrop support
- Unique visual style
## Usage
let params = EFStyleRandomRectangleParams(
color: .green
)
let style = EFQRCodeStyleRandomRectangle(params: params)
-
Creates a random rectangle QR code with the specified parameters.
Declaration
Swift
public init(params: EFStyleRandomRectangleParams)
Parameters
params
The random rectangle styling parameters.