An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alpha-wallet-ios/TrustTests/Factories/FakeNavigationController.swift

22 lines
670 B

// Copyright SIX DAY LLC. All rights reserved.
import Foundation
import UIKit
class FakeNavigationController: UINavigationController {
private var _presentedViewController: UIViewController?
override var presentedViewController: UIViewController? {
return _presentedViewController
}
override func pushViewController(_ viewController: UIViewController, animated: Bool) {
super.pushViewController(viewController, animated: false)
}
override func present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)? = nil) {
_presentedViewController = viewControllerToPresent
}
}