MBCDotsSubview

Objective-C


@interface MBCDotsSubview : MBCSubview <MBCPointDetectorSubview>

Swift

class 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) UIColor *_Nonnull dotsColor;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) CGFloat dotsStrokeWidth;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) CGFloat dotsRadius;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) CGFloat animationDuration;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    init(frame: CGRect)