GSKEditFrameView
Objective-C
@interface GSKEditFrameView : UIView
Swift
class GSKEditFrameView : UIView
The view to edit the quadrangle to edit the perspective correction.
It displays an editable quadrangle overlaid on the original image.
-
Undocumented
Declaration
Objective-C
- (void)clearSelection;
Swift
func clearSelection()
-
The overlay representing the quadrangle.
In particular, this lets you customize the colors used for the frame overlay.
Declaration
Objective-C
@property (nonatomic, readonly) GSKEditableFrame *_Nonnull imageSelection;
Swift
var imageSelection: GSKEditableFrame { get }
-
The magnifier “loupe” that displays a magnified view of the quadrangle corner being moved.
Declaration
Objective-C
@property (nonatomic, readonly) GSKMagnifierView *_Nonnull magnifierView;
Swift
var magnifierView: GSKMagnifierView { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong) GSKQuadrangle *quadrangle
Swift
var quadrangle: GSKQuadrangle { get set }
-
Sets the quadrangle on the view.
The quadrangle must be in normalized coordinates.
Declaration
Objective-C
- (void)setQuadrangle:(nonnull GSKQuadrangle *)quadrangle animated:(BOOL)animated;
Swift
func setQuadrangle(_ quadrangle: GSKQuadrangle, animated: Bool)
Parameters
animated
If true, the new quadrangle will fade in.
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL noCrop
Swift
var noCrop: Bool { get set }
-
Set the image to be displayed by the frame view.
The frame view will resize the image to reduce memory usage.
Declaration
Objective-C
- (void)setImage:(nonnull UIImage *)image;
Swift
func setImage(_ image: UIImage)
-
Inset for the image.
By default this inset takes in account the
imageSelection
‘shandleWidth
to make sure the handles are visible even when selection is maximized.Declaration
Objective-C
@property (nonatomic) CGFloat inset;
Swift
var inset: CGFloat { get set }