A small web view

Is it possible to have a small WebView? for instance 200 x 250


I have a Webkit View from the Library

In the ViewController:


    import Cocoa
    import WebKit
    class ViewController: NSViewController {
   
        @IBOutlet weak var webView1: WKWebView!
       
        override func viewDidLoad() {
            super.viewDidLoad()
            let url = URL(string: "https://www.apple.com")
            let request = URLRequest(url:url!)
            webView1.load(request)
           
        }


I can see the content of the web site but it is cut. I do not need a full web browser only an image representation of the site.

Replies

>only an image representation of the site.


You may not want to waste your time trying to make this work if you're talking about scraping other sites to make a collection of thumbnails...


See the ASRGs; 5.2 Intellectual Property & 4.2 Minimum Functionality