MBCDotsSubview


@interface MBCDotsSubview : MBCSubview <MBCPointDetectorSubview>

A wrapper around CAShapeLayer which is used for presenting a status about barcode detections

The layer is used to draw dots representing barcodes

  • Color of the dots

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) UIColor *_Nonnull dotsColor;

    Swift

    var dotsColor: UIColor { get set }
  • Width of the dots

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        CGFloat dotsStrokeWidth;

    Swift

    var dotsStrokeWidth: CGFloat { get set }
  • Radius of dots

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat dotsRadius;

    Swift

    var dotsRadius: CGFloat { get set }
  • Duration of the animation

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        CGFloat animationDuration;

    Swift

    var animationDuration: CGFloat { get set }
  • Initializes the layer

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame;

    Swift

    init(frame: CGRect)