GSKMagnifierView

Objective-C

@interface GSKMagnifierView : UIView

/**
 The style of the crosshair
 */
@property (nonatomic, assign) GSKMagnifierViewCenterStyle centerStyle;

/**
 Default line width for the crosshair.
 */
@property (nonatomic, assign) CGFloat crosshairLineWidth;

/**
 Default line width for the quadrangle.
 */
@property (nonatomic, assign) CGFloat quadrangleLineWidth;


/**
 The color of the quadrangle crosshair.

 This only applies when the crosshair is of style GSKMagnifierCrosshairStyleQuadrangle.
 */
@property (nonatomic, copy) UIColor *quadrangleColor;

- (void)setSourceImage:(UIImage *)sourceImage;
- (void)setSourceImagePosition:(CGPoint)position quadrangle:(GSKQuadrangle *)quadrangle;

@end

Swift

class GSKMagnifierView : UIView

Undocumented

  • The style of the crosshair

    Declaration

    Objective-C

    @property (nonatomic) GSKMagnifierViewCenterStyle centerStyle;

    Swift

    var centerStyle: GSKMagnifierViewCenterStyle { get set }
  • Default line width for the crosshair.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat crosshairLineWidth;

    Swift

    var crosshairLineWidth: CGFloat { get set }
  • Default line width for the quadrangle.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat quadrangleLineWidth;

    Swift

    var quadrangleLineWidth: CGFloat { get set }
  • The color of the quadrangle crosshair.

    This only applies when the crosshair is of style GSKMagnifierCrosshairStyleQuadrangle.

    Declaration

    Objective-C

    @property (nonatomic, copy) UIColor *quadrangleColor;

    Swift

    @NSCopying var quadrangleColor: UIColor! { get set }
  • Undocumented

    Declaration

    Objective-C

    - (void)setSourceImage:(UIImage *)sourceImage;

    Swift

    func setSourceImage(_ sourceImage: UIImage!)
  • Undocumented

    Declaration

    Objective-C

    - (void)setSourceImagePosition:(CGPoint)position quadrangle:(GSKQuadrangle *)quadrangle;

    Swift

    func setSourceImagePosition(_ position: CGPoint, quadrangle: GSKQuadrangle!)