FUIInlineSignatureFormView
public class FUIInlineSignatureFormView : FUIBaseDrawingView, FUISignatureDrawingPadComponent, FUITitleComponent, FUIStartActionComponent, FUIRestartActionComponent, FUICancelActionComponent, FUIClearActionComponent, FUISaveActionComponent, FUIWatermarkTextComponent
The content view of a FUIInlineSignatureFormCell
.
Theming
Supported FUIInlineSignatureFormView
class path:
fdlFUIInlineSignatureFormView
Supported FUIInlineSignatureFormView
properties:
stroke-width: (Number)
stroke-color: (Color)
drawing-area-background-color: (Color)
xmark-color: (Color)
signature-line-color: (Color)
Supported Text
class path:
fdlFUIInlineSignatureFormView_title
fdlFUIInlineSignatureFormView_startActionTitle
fdlFUIInlineSignatureFormView_restartActionTitle
fdlFUIInlineSignatureFormView_cancelActionTitle
fdlFUIInlineSignatureFormView_clearActionTitle
fdlFUIInlineSignatureFormView_saveActionTitle
fdlFUIInlineSignatureFormView_watermarkText
Supported Text
properties:
font-color: Color;
font-style: UIFontTextStyle;
-
The width of the signature stroke.
The default width is 3.0.
Declaration
Swift
public var strokeWidth: CGFloat { get set }
-
The color of the signature stroke.
The default color is Fiori color style
primaryLabel
.Declaration
Swift
public var strokeColor: UIColor { get set }
-
The background color of the signature drawing area.
The default color is Fiori color style
primaryBackground
.Declaration
Swift
public var drawingAreaBackgroundColor: UIColor { get set }
-
The color of the “X” mark.
Declaration
Swift
public var xMarkColor: UIColor?
-
The color of the signature line.
Declaration
Swift
public var signatureLineColor: UIColor?
-
The title of the
FUIInlineSignatureFormView
.The default is localized “Signature”. You can also use this property to customize the font and color.
Declaration
Swift
public var title: FUIText { get set }
-
The title of the start signing button.
The default text is localized “Tap to Sign”. You can also use this property to customize the font and color.
Declaration
Swift
public var startActionTitle: FUIText { get set }
-
The title of the restart signing button.
The default text is localized “Re-enter Signature”. You can also use this property to customize the font and color.
Declaration
Swift
public var restartActionTitle: FUIText { get set }
-
The title of the cancel signing button.
The default text is localized “Cancel”. You can also use this property to customize the font and color.
Declaration
Swift
public var cancelActionTitle: FUIText { get set }
-
The title of the clear signing button.
The default text is localized “Cancel”. You can also use this property to customize the font and color.
Declaration
Swift
public var clearActionTitle: FUIText { get set }
-
The title of the save signature button.
The default text is localized “Save”. You can also use this property to customize the font and color.
Declaration
Swift
public var saveActionTitle: FUIText { get set }
-
This property sets whether the X mark is to be hidden or not.
The default value is
false
, which means the X mark will not be hidden.Declaration
Swift
open var hidesXMark: Bool { get set }
-
This property sets whether the signature line is to be hidden or not.
The default value is
false
, which means the signature line will not be hidden.Declaration
Swift
open var hidesSignatureLine: Bool { get set }
-
This property indicates if a timestamp should be added to the signature image or not.
The default is
false
, no timestamp is added to the image.Declaration
Swift
open var addsTimestampInImage: Bool { get set }
-
Provide this to format the timestamp.
If this is
nil
, the default format string is “MM/dd/YYYY hh:mma zzz”.Declaration
Swift
open var timestampFormatter: DateFormatter? { get set }
-
The watermark text to be added to the signature image.
Declaration
Swift
open var watermarkText: FUIText { get set }
-
The text alignment for the watermark text.
The default is
.natural
.Declaration
Swift
open var watermarkTextAlignment: NSTextAlignment { 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 { get set }
-
Implementation of the change handler. This is invoked on changes to the
value
property.Declaration
Swift
public var onChangeHandler: ((UIImage?) -> Void)?
-
The existing user signature image.
Default is
nil
.Declaration
Swift
public var signatureImage: UIImage? { get set }
-
Declaration
Swift
required public init()
-
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Declaration
Swift
public override func calculateLayout(_ targetSize: CGSize)
-
Undocumented
Declaration
Swift
public override func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority) -> CGSize