Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lapinek/609da93c68e1cb92eccc13e05a8bf7d5 to your computer and use it in GitHub Desktop.
Save lapinek/609da93c68e1cb92eccc13e05a8bf7d5 to your computer and use it in GitHub Desktop.
// 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