PSPDFSignatureCreationConfigurationBuilder

Objective-C


@interface PSPDFSignatureCreationConfigurationBuilder
    : PSPDFBaseConfigurationBuilder

Mutable builder for configuration options for PSPDFSignatureCreationViewController.

  • The ways in which the user can choose to add their signature.

    This array should contain PSPDFSignatureCreationMode values boxed in NSNumber objects.

    These are shown in the order specified as tabs across the top of the signatures UI. The first entry will be selected initially. If this array contains a single entry then the tabs will be hidden. This array must not be empty and must not contain duplicates.

    Defaults to @[@(PSPDFSignatureCreationModeDraw), @(PSPDFSignatureCreationModeImage), @(PSPDFSignatureCreationModeType)].

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<NSNumber *> *_Nonnull availableModes;
  • The available colors that the user can pick for their signature when drawing or typing.

    The first entry will be selected initially. If this array contains a single entry then the color options will be hidden. This array must not be empty and must not contain duplicates.

    Limiting this to no more than around three colors is recommended.

    Defaults to black, purple, and blue.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIColor *> *_Nonnull colors;
  • Whether natural drawing is enabled, which applies thickness adjustments based on the speed of strokes. Only relevant with the Draw mode. Defaults to true.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isNaturalDrawingEnabled;
  • Font options presented to the user for the Type mode to set their signature style. Defaults to 4 custom fonts that are bundled by PSPDFKit. The size of the provided UIFont instances is ignored. This array must not be empty.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIFont *> *_Nonnull fonts;