FUISignatureCaptureView

public class FUISignatureCaptureView : UIView, FUIStrokeComponent

This is the view to be displayed in the FUISignatureCaptureController.

This FUISignatureCaptureView has a “X” image followed by a signature line for user to sign above the line. This view is created from FUISignatureCaptureController. Developer should not instantiate this view directly.

Theming

Supported STROKEVIEW class paths:

fdlFUISignatureCaptureView {}

Supported STROKEVIEW properties:

background-color: (Color)
stroke-color: (Color)
stroke-width: (Number)

Supported IMAGE class paths:

fdlFUISignatureCaptureView_xImageView {}

Supported IMAGE properties:

tint-color: (Color)

Supported VIEW class paths:

fdlFUISignatureCaptureView_signatureLineView {}

Supported VIEW properties:

background-color: (Color)

Supported TEXT class paths:

fdlFUISignatureCaptureView_footnote {}

Supported TEXT properties:

font-color: (Color)
font-style: (UIFontTextStyle)
  • The image view in the signature capture view witch has an “X” image.

    Declaration

    Swift

    weak public internal(set) var xImageView: UIImageView! { get }
  • This property indicates if xImageView is to be hidden or not.

    The default value is false, means not to hide xImageView.

    Declaration

    Swift

    open var hidesXImageView: Bool
  • Set usesCompactSignature to true to remove signature whitespace

    Declaration

    Swift

    open var usesCompactSignature: Bool? { get set }
  • The view for the signature line.

    Declaration

    Swift

    weak public internal(set) var signatureLineView: UIView! { get }
  • This property indicates if signatureLineView is to be hidden or not.

    The default value is false, means not to hide signatureLineView.

    Declaration

    Swift

    open var hidesSignatureLineView: Bool
  • The width of the signature stroke.

    Declaration

    Swift

    public var strokeWidth: CGFloat { get set }
  • The color of the signature stroke.

    Declaration

    Swift

    public var strokeColor: UIColor { get set }
  • The previously saved signature image.

    Declaration

    Swift

    open var signatureImage: UIImage? { get set }
  • This property indicates if the tint color should be applied to display the previously saved signature image.

    The default is true. The tint color to be applied is the strokeColor,

    Declaration

    Swift

    open var appliesTintColorToImage: Bool
  • Clears the signature.

    Declaration

    Swift

    public func clear()
  • Generate the signature image.

    Declaration

    Swift

    public func generateImage() -> UIImage?

    Return Value

    The UIImage of the signature. Or, nil if no signature, yet.