|
|
@ -4,6 +4,7 @@ import Foundation |
|
|
|
import UIKit |
|
|
|
import UIKit |
|
|
|
import Result |
|
|
|
import Result |
|
|
|
import MBProgressHUD |
|
|
|
import MBProgressHUD |
|
|
|
|
|
|
|
import SafariServices |
|
|
|
|
|
|
|
|
|
|
|
enum ConfirmationError: LocalizedError { |
|
|
|
enum ConfirmationError: LocalizedError { |
|
|
|
case cancel |
|
|
|
case cancel |
|
|
@ -47,4 +48,9 @@ extension UIViewController { |
|
|
|
func hideLoading(animated: Bool = true) { |
|
|
|
func hideLoading(animated: Bool = true) { |
|
|
|
MBProgressHUD.hide(for: view, animated: animated) |
|
|
|
MBProgressHUD.hide(for: view, animated: animated) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func openURL(_ url: URL) { |
|
|
|
|
|
|
|
let controller = SFSafariViewController(url: url) |
|
|
|
|
|
|
|
present(controller, animated: true, completion: nil) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|