JumioPositiveButton


@interface JumioPositiveButton : UIButton <JumioAppearance>

UIButton that implements JumioAppearance protocol that is used within our confirmation or error views and invokes a positive action (e.g. readable, OK). Please check out our Surface Tool https://jumio.github.io/surface-ios/ to see what customization options are supported.

  • UIColor that is used to draw the border.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) UIColor *borderColor;

    Swift

    var borderColor: UIColor! { get set }
  • Sets the background color for specific states.

    Declaration

    Objective-C

    - (void)setBackgroundColor:(UIColor *)backgroundColor
                      forState:(UIControlState)state;

    Swift

    func setBackgroundColor(_ backgroundColor: UIColor!, for state: UIControl.State)

    Parameters

    backgroundColor

    UIColor that should be used

    state

    the UIControlState for which the color should be drawn

  • Returns the background color for specific states.

    Declaration

    Objective-C

    - (UIColor *)backgroundColorForState:(UIControlState)state;

    Swift

    func backgroundColor(for state: UIControl.State) -> UIColor!

    Parameters

    state

    the UIControlState for which the color should be drawn

    Return Value

    UIColor that is to be used