ErrorController

@MainActor
public class ErrorController : BaseController

This is the base class for FUIMultiUserTransactionErrorController and FUIMultiUserConnectionErrorController.

Developeres should not use this class directly.

  • The error banner view.

    Declaration

    Swift

    @MainActor
    public let errorBannerView: FUIBannerMessageView
  • The action button.

    Declaration

    Swift

    @MainActor
    public let actionButton: FUIButton
  • The “Close” button on the navigation bar.

    This is a FUIBarButtonItem initialized with the localized title “Close”.

    Declaration

    Swift

    @MainActor
    public let closeButton: FUIBarButtonItem
  • This handler is invoked when the close button is tapped.

    Declaration

    Swift

    @MainActor
    public var onCloseHandler: ((UIViewController) -> Void)?
  • This property indicates if the close button is to be hidden or not.

    The default is false, which means not to hide the close button.

    Declaration

    Swift

    @MainActor
    public var hidesCloseButton: Bool
  • The title to be displayed in the error banner view.

    The default title is localized string “Sync Failed”.

    Declaration

    Swift

    @MainActor
    public var errorBannerTitle: String!
  • Subclasses can override this to anchor the top of actionButton to a different view (e.g. detailMessageLabel). Defaults to messageLabel.

    Declaration

    Swift

    @objc
    @MainActor
    open var actionButtonTopAnchorView: UIView { get }
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    open var actionButtonTopPadding: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    open var actionButtonHorizontalPadding: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    open var actionButtonHeight: CGFloat { get }
  • Called by external clients to customize the line break mode of actionButton. Once this method is called, the SDK will no longer override lineBreakMode internally.

    Note

    There is no need to synchronously modify titleLabel.numberOfLines. FUIButton is backed by UIButton.Configuration, and the number of visible lines is effectively driven by the lineBreakMode semantics (.byTruncatingTail → single line, .byWordWrapping / .byCharWrapping → multi-line). Setting numberOfLines to any value other than 0 or 1 has no effect on FUIButton.

    Declaration

    Swift

    @MainActor
    public func setActionButtonLineBreakMode(_ mode: NSLineBreakMode)