This code was originally posted by Jens in:
https://developer.apple.com/forums/thread/5137
He writes "Below is the 'Webkit Browser in 30 Lines of Swift' from Practical Swift, with some small changes to make it run on latest beta with Swift 2."
I have modified it to work on MacOS Big Sur 11.7.4 Swift 5.5.2