ALCutoutView Class Reference

Inherits from UIView
Declared in ALCutoutView.h

Overview

The ALCutoutView is used to draw the cutout on the phone screen specified in the ALUIConfiguration

  cutoutWidthPercent

@property (nonatomic, assign) CGFloat cutoutWidthPercent

  cutoutMaxPercentWidth

@property (nonatomic, assign) CGFloat cutoutMaxPercentWidth

  cutoutMaxPercentHeight

@property (nonatomic, assign) CGFloat cutoutMaxPercentHeight

  cutoutOffset

@property (nonatomic, assign) CGPoint cutoutOffset

  cornerRadius

@property (nonatomic, assign) NSInteger cornerRadius

  strokeWidth

@property (nonatomic, assign) NSInteger strokeWidth

  cutoutAlignment

@property (nonatomic, assign) ALCutoutAlignment cutoutAlignment

  cutoutPath

@property (nullable, nonatomic, copy) UIBezierPath *cutoutPath

  cutoutBackgroundColor

@property (nullable, nonatomic, strong) UIColor *cutoutBackgroundColor

  strokeColor

@property (nullable, nonatomic, strong) UIColor *strokeColor

  feedbackStrokeColor

@property (nullable, nonatomic, strong) UIColor *feedbackStrokeColor

  overlayImage

@property (nullable, nonatomic, strong) UIImage *overlayImage

– initWithFrame:cutoutWidthPercent:cutoutMaxPercentWidth:cutoutMaxPercentHeight:cutoutOffset:cornerRadius:strokeWidth:cutoutAlignment:cutoutPath:cutoutBackgroundColor:strokeColor:feedbackStrokeColor:overlayImage:

- (_Nullable instancetype)initWithFrame:(CGRect)frame cutoutWidthPercent:(CGFloat)cutoutWidthPercent cutoutMaxPercentWidth:(CGFloat)cutoutMaxPercentWidth cutoutMaxPercentHeight:(CGFloat)cutoutMaxPercentHeight cutoutOffset:(CGPoint)cutoutOffset cornerRadius:(NSInteger)cornerRadius strokeWidth:(NSInteger)strokeWidth cutoutAlignment:(ALCutoutAlignment)cutoutAlignment cutoutPath:(UIBezierPath *_Nonnull)cutoutPath cutoutBackgroundColor:(UIColor *_Nonnull)cutoutBackgroundColor strokeColor:(UIColor *_Nonnull)strokeColor feedbackStrokeColor:(UIColor *_Nonnull)feedbackStrokeColor overlayImage:(UIImage *_Nonnull)overlayImage

– cutoutRectScreen

Returns the cutout location inside the view.

- (CGRect)cutoutRectScreen

Return Value

CGRect representing the cutout inside the CutoutView.

Declared In

ALCutoutView.h

– drawCutout:

- (void)drawCutout:(BOOL)feedbackMode

– calculateAndDrawCutout

- (void)calculateAndDrawCutout