24 lines
363 B
Swift
24 lines
363 B
Swift
|
|
//
|
||
|
|
// 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
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|