EFPointStyle

@objc
public protocol EFPointStyle

Collection of foreground point renderer capabilities.

  • Fills a code point satisfying this style.

    Declaration

    Swift

    func fillRect(context: CGContext, rect: CGRect, isStatic: Bool)

    Parameters

    context

    the context to draw in.

    rect

    the boundaries of the point to draw.

    isStatic

    true if it is recommended to use a square instead of current style.

Available where Self == EFSquarePointStyle

  • square Extension method

    Classical QR code look and feel 🔳.

    Declaration

    Swift

    static var square: Self { get }

Available where Self == EFCirclePointStyle

  • circle Extension method

    More well rounded 🔘.

    Declaration

    Swift

    static var circle: Self { get }

Available where Self == EFDiamondPointStyle

  • diamond Extension method

    Sparkling ✨.

    Declaration

    Swift

    static var diamond: Self { get }