GSKEditFrameViewController

@interface GSKEditFrameViewController : UIViewController

The GSKEditFrameViewController lets the user change a quadrangle.

The quadrangle is a drawn as an overlay over an image. This typically lets the user edit the edges of a document to crop it more accurately.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithImage:(nonnull UIImage *)image
                               quadrangle:(nonnull GSKQuadrangle *)quadrangle;

    Swift

    init(image: UIImage, quadrangle: GSKQuadrangle)

    Parameters

    image

    the image on which to draw the quadrangle. This is typically your original photo from the camera.

    quadrangle

    the initial quadrangle

  • The image on which the quadrangle is overlaid.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) UIImage *_Nonnull image;

    Swift

    var image: UIImage { get set }
  • Used to set the quadrangle to display in the view controller, and to retrieve the new quadrangle edited by the user.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        GSKQuadrangle *_Nonnull quadrangle;

    Swift

    unowned(unsafe) var quadrangle: GSKQuadrangle { get set }
  • The view on which the quadrangle is drawn.

    Declaration

    Objective-C

    @property (nonatomic, readonly) GSKEditFrameView *_Nonnull frameView;

    Swift

    var frameView: GSKEditFrameView { get }
  • Customize the color of the shade within the quadrangle.

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) UIColor *_Nonnull shadeColor;

    Swift

    @NSCopying var shadeColor: UIColor { get set }
  • Customize the color of the line used to draw the quadrangle.

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) UIColor *_Nonnull lineColor;

    Swift

    @NSCopying var lineColor: UIColor { get set }