Configuration

Swift

public struct Configuration : Hashable

Configuration options for SignatureCreationViewController.

See example usage at https://pspdfkit.com/guides/ios/signatures/customizing-the-signature-user-interface/

  • Undocumented

    Declaration

    Swift

    public static let defaultFonts: [UIFont]
  • The ways in which the user can choose to add their signature.

    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 [.draw, .image, .type].

    Declaration

    Swift

    public var availableModes: [Mode]
  • 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

    Swift

    public var isNaturalDrawingEnabled: Bool
  • 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

    Swift

    public var fonts: [UIFont]
  • Undocumented

    Declaration

    Swift

    public init(availableModes: [Mode] = [.draw, .image, .type], isNaturalDrawingEnabled: Bool = true, fonts: [UIFont] = defaultFonts)