PTToolGroupIndicatorView
@interface PTToolGroupIndicatorView : UIView
The PTToolGroupView displays the current tool group of a PTToolGroupManager
instance.
-
Initializes a
PTToolGroupIndicatorViewinstance with the given frame.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;Swift
init(frame: CGRect)Parameters
frameThe frame of the view.
Return Value
An initialized
PTToolGroupIndicatorViewinstance. -
Initializes a
PTToolGroupIndicatorViewinstance with a decoder.Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;Swift
init?(coder: NSCoder)Parameters
coderThe decoder object.
Return Value
An initialized
PTToolGroupIndicatorViewinstance, ornilif 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 toYESto 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
NOwhen Liquid Glass is active. TheUIDesignRequiresCompatibilityentry of the app is respected by this property when targeting iOS 26, with the property’s default value beingYESin 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 }
PTToolGroupIndicatorView Class Reference