Created
March 7, 2020 21:48
-
-
Save lapinek/609da93c68e1cb92eccc13e05a8bf7d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ViewController.swift | |
import UIKit | |
class ViewController: UIViewController { | |
var webViewController: WebViewController! | |
// . . . | |
/** | |
ForgeRock 7 example. | |
*/ | |
webViewController = WebViewController.init( | |
appGroup: "group.com.forgerock.sso-webview", | |
appGroupCookies: ["iPlanetDirectoryPro"], | |
webViewFrame: self.view.bounds | |
) | |
webViewController.loadWebView() { | |
webView in | |
webView.translatesAutoresizingMaskIntoConstraints = false | |
webView.tag = self.webViewTag | |
self.view.addSubview(webView) | |
webView.load(URLRequest(url: URL(string: "https://default.iam.example.com/am/")!)) | |
} | |
// . . . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment