MBModernViewfinderSubview
@interface MBModernViewfinderSubview : MBSubview <MBQuadDetectorSubview>
Overlay subview presenting the status of detection. The subview is presented as green corners located on edges of detection points.
-
Denotes if view finder is moveable. Viewfinder will move whenever something is detected and will return to default position if no object is detected for some time.
Default: YES
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL moveable;
Swift
var moveable: Bool { get set }
-
Margins between overlay bounds and default corner positions while in portrait orientation.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIEdgeInsets portraitMargins;
Swift
var portraitMargins: UIEdgeInsets { get set }
-
Margins between overlay bounds and default corner positions while in landscape orientation.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIEdgeInsets landscapeMargins;
Swift
var landscapeMargins: UIEdgeInsets { get set }
-
Resets the viewfinder position to it’s initial position.
Declaration
Objective-C
- (void)resetPositions;
Swift
func resetPositions()