PTGrabberView


@interface PTGrabberView : UIView

A grabber view can be used to indicate that an area can be dragged or resized by the user. The handling of gestures and touches is the responsibility of the view containing an instance of the PTGrabberView class.

  • The orientation of the grabber.

    The default value of this property is PTGrabberOrientationHorizontal.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        PTGrabberOrientation orientation;

    Swift

    var orientation: PTGrabberView.GrabberOrientation { get set }
  • The fill color of the grabber.

    The default value of this property is PTGrabberView.defaultFillColor. Setting a value of nil to this property resets the fill color to its default value.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite, null_resettable) UIColor *fillColor;

    Swift

    var fillColor: UIColor! { get set }
  • The default fill color for instances of the PTGrabberView class.

    This color is a semi-transparent gray color.

    Declaration

    Objective-C

    @property (class, nonatomic, strong, readonly)
        UIColor *_Nonnull defaultFillColor;

    Swift

    class var defaultFillColor: UIColor { get }