PSPDFFreeTextAccessoryView
Objective-C
@interface PSPDFFreeTextAccessoryView
: PSPDFToolbar <PSPDFFontPickerViewControllerDelegate,
PSPDFAnnotationStyleViewControllerDelegate,
PSPDFOverridable>
Swift
class FreeTextAccessoryView : Toolbar, FontPickerViewControllerDelegate, AnnotationStyleViewControllerDelegate, Overridable
Free Text accessory toolbar for faster styling.
-
The input accessory delegate.
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFFreeTextAccessoryViewDelegate> _Nullable delegate;
Swift
weak var delegate: FreeTextAccessoryViewDelegate? { get set }
-
Used to present popover pickers for certain button types.
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFPresentationContext> _Nullable presentationContext;
Swift
weak var presentationContext: PresentationContext? { get set }
-
The annotation that is being edited.
Declaration
Objective-C
@property (nonatomic) PSPDFFreeTextAnnotation *_Nonnull annotation;
Swift
var annotation: PSPDFFreeTextAnnotation { get set }
-
List of supported inspector properties.
The dictionary is keyed by annotation type (
PSPDFAnnotationString
). The values are either:- an array of arrays of property name strings (see
PSPDFAnnotationStyleKeyGroupedList
) - a block taking an annotation and returning
PSPDFAnnotationStyleKeyGroupedList
for it (seePSPDFAnnotationStyleBlock
)
See
AnnotationStyle.Key
for a list of supported keys.Defaults to an empty dictionary. Normally set to the values from
PDFConfiguration
after initialization.Note
Only thePSPDFAnnotationStringFreeText
key is relevant for this component.Declaration
Objective-C
@property (nonatomic, copy) NSDictionary<PSPDFAnnotationString, id> *_Nonnull propertiesForAnnotations;
Swift
var propertiesForAnnotations: [Annotation.Tool : Any] { get set }
- an array of arrays of property name strings (see
-
Whether a thing border should be added just above the accessory view. Defaults to YES.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isBorderVisible) BOOL borderVisible;
Swift
var isBorderVisible: Bool { get set }
-
The color for the default separators and border.
Declaration
Objective-C
@property (nonatomic) UI_APPEARANCE_SELECTOR UIColor *separatorColor;
Swift
var separatorColor: UIColor { get set }
-
By default the accessory view buttons differ based on the available toolbar width. Use this to customize the button order or fixate a certain set of buttons.
Declaration
Objective-C
- (nonnull NSArray<__kindof PSPDFToolbarButton *> *)buttonsForWidth: (CGFloat)width;
Swift
func buttons(forWidth width: CGFloat) -> [PSPDFToolbarButton]
-
This is called on size changes and when the free text accessory is deallocated. If you present your own controller, add custom logic here to ensure it’s dismissed.
Declaration
Objective-C
- (void)dismissPresentedViewControllersAnimated:(BOOL)animated;
Swift
func dismissPresentedViewControllers(animated: Bool)
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *fontNameButton
Swift
var fontNameButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *fontSizeButton
Swift
var fontSizeButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *increaseFontSizeButton
Swift
var increaseFontSizeButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *decreaseFontSizeButton
Swift
var decreaseFontSizeButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarSelectableButton *leftAlignButton
Swift
var leftAlignButton: PSPDFToolbarSelectableButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarSelectableButton *centerAlignButton
Swift
var centerAlignButton: PSPDFToolbarSelectableButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarSelectableButton *rightAlignButton
Swift
var rightAlignButton: PSPDFToolbarSelectableButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *colorButton
Swift
var colorButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *clearButton
Swift
var clearButton: PSPDFToolbarButton { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFToolbarButton *doneButton
Swift
var doneButton: PSPDFToolbarButton { get }