PTMagnifierView


@interface PTMagnifierView : UIView <PTOverridable>

The loupe that is used during text selection.

  • The view that is being magnified.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) 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.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;