WKWebViewPresenter
public class WKWebViewPresenter : WKWebViewPresenting
Default implementation of WKWebViewPresenting
.
-
The presenter delegate.
Declaration
Swift
public weak var delegate: WebViewPresenterDelegate?
-
The web view delegate.
Declaration
Swift
public weak var webViewDelegate: SAPWKNavigationDelegate?
-
The view controller used to present the navigation controller. By default it searches the topmost view controller automatically at the call of the property. It is also settable by the application it is necessary.
Declaration
Swift
public var webViewPresentingViewController: UIViewController? { get set }
-
Default initializer of
WKWebViewPresenter
.Declaration
Swift
public init(delegate: WebViewPresenterDelegate? = nil, webViewDelegate: SAPWKNavigationDelegate? = nil)
Parameters
delegate
The delegate instance.
-
Presents the web view and passes the instance in the completion handler.
Declaration
Swift
public func presentWebView(completionHandler: @escaping (WKWebView?, Error?) -> Void)
-
Dismisses the presented web view.
Declaration
Swift
public func dismissWebView()