Initial commit
Able to actually block scripts using a plugin, have XPC set up between plugin and host process. Limited UI support
This commit is contained in:
23
SBrowser/Browser View/BrowserView.swift
Normal file
23
SBrowser/Browser View/BrowserView.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// BrowserView.swift
|
||||
// SBrowser
|
||||
//
|
||||
// Created by James Magahern on 7/21/20.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import WebKit
|
||||
|
||||
class BrowserView: UIView
|
||||
{
|
||||
var webView: WKWebView? {
|
||||
didSet { addSubview(webView!); setNeedsLayout() }
|
||||
}
|
||||
|
||||
override func layoutSubviews()
|
||||
{
|
||||
super.layoutSubviews()
|
||||
webView?.frame = bounds
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user