PTMagnifierView

@interface PTMagnifierView : UIView

The loupe that is used during text selection.

  • The view that is being magnified.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIView *_Nonnull viewToMagnify;

    Swift

    var viewToMagnify: UIView { get }
  • The designated initializer

    Declaration

    Objective-C

    - (nonnull instancetype)initWithViewToMagnify:(nonnull UIView *)viewToMagnify;

    Swift

    init(viewToMagnify: UIView)

    Parameters

    viewToMagnify

    The view that will appear magnified in the loupe.

  • Sets the point of viewToMagnify to magnify, and the location to display the loupe.

    Declaration

    Objective-C

    - (void)setMagnifyPoint:(CGPoint)magnifyPoint TouchPoint:(CGPoint)touchPoint;

    Swift

    func setMagnifyPoint(_ magnifyPoint: CGPoint, touch touchPoint: CGPoint)

    Parameters

    magnifyPoint

    The point to magnify.

    touchPoint

    The point to sit the loupe next to.