UIViewController

extension UIViewController
  • A UIViewcontroller extension that shows an alert based on the Error it gets as the parameter. It can also add an extra option as a closure to be executed. Use this when drag and dropping files into the SDK.

    Declaration

    Swift

    public func showErrorDialog(for error: Error, positiveAction: (() -> Void)?)

    Parameters

    error

    The error to be shown

    positiveAction

    The closure to be executed. If nil, the extra option won’t be added.