PTToolGroupIndicatorView


@interface PTToolGroupIndicatorView : UIView

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

  • Initializes 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.

  • Initializes 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 }
  • Whether the view hides its background.

    On iOS 26 and later, this view displays a Liquid Glass background behind its button. Set this property to YES to hide that background and restore the view’s previous appearance.

    Note

    This property has no effect on systems prior to iOS 26.

    The default value of this property is NO when Liquid Glass is active. The UIDesignRequiresCompatibility entry of the app is respected by this property when targeting iOS 26, with the property’s default value being YES in that case.

    Declaration

    Objective-C

    @property (nonatomic) BOOL hidesBackground;

    Swift

    var hidesBackground: Bool { get set }
  • The tool group manager associated with this view.

    Declaration

    Objective-C

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

    Swift

    var toolGroupManager: PTToolGroupManager? { get set }