Skip to content

atomicfi/quantum-ios

Repository files navigation

QuantumIOS

Example

import UIKit
import WebKit
import QuantumIOS

class ViewController: UIViewController {
	@IBOutlet weak var webView: WKWebView!
	var quantum: Quantum?
	
	
	override func viewDidLoad() {
		super.viewDidLoad()
		
        // Quantum takes two parameters.
        // 1. A WebView that uses the qauntum-js package to manage browsers (see example webapp)
        // 2. A UIViewController to present the browsers on top of
        // The WebView could be an existing web application you present to your users inside of your native app
        // or a hidden WebView that is used to house a web application that uses quantum-js to manage browsers
		quantum = Quantum(view: webView, controller: self)
		webView.load(URLRequest(url: URL(string: "http://localhost:3000")!))
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages