PTToolGroupIndicatorView


@interface PTToolGroupIndicatorView : UIView

The PTToolGroupView displays the current tool group of a PTToolGroupManager instance.

  • Intializes a PTToolGroupIndicatorView instance with the given frame.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame;

    Swift

    init(frame: CGRect)

    Parameters

    frame

    The frame of the view.

    Return Value

    An initialized PTToolGroupIndicatorView instance.

  • Intializes a PTToolGroupIndicatorView instance with a decoder.

    Declaration

    Objective-C

    - (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;

    Swift

    init?(coder: NSCoder)

    Parameters

    coder

    The decoder object.

    Return Value

    An initialized PTToolGroupIndicatorView instance, or nil if decoding failed.

  • The button shown by this view to indicate the current tool group. The button’s text is updated to display the current tool group when it changes.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIButton *_Nonnull button;

    Swift

    var button: UIButton { get }
  • The tool group manager associated with this view.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) PTToolGroupManager *toolGroupManager;

    Swift

    var toolGroupManager: PTToolGroupManager? { get set }