MBDotsResultSubview


@interface MBDotsResultSubview : MBSubview <MBPointDetectorSubview>

Overlay subview presenting status of OCR detection. Dots are displayed over locations of detected characters.

  • Foreground color of dots.

    Declaration

    Objective-C

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

    Swift

    var foregroundColor: UIColor { get set }
  • Border and shadow color of dots.

    Declaration

    Objective-C

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

    Swift

    var tintColor: UIColor { get set }
  • If set YES, dots will not redraw until the animation is finished. This will make animation look much smoother on fast results.

    Default: YES

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL shouldIgnoreFastResults;

    Swift

    var shouldIgnoreFastResults: Bool { get set }
  • Duration of fade animation for each dot.

    Default: 0.25f

    Declaration

    Objective-C

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

    Swift

    var charFadeInDuration: CGFloat { get set }
  • Maximum number of dots shown on screen. This count has to be in range [20,50].

    Default: 50

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) NSUInteger dotCount;

    Swift

    var dotCount: UInt { get set }