In Swift you can load HTML files into your WKWebView from an file which is part of your App Bundle. Before you use the below code snippet, please make sure that the HTML file you want to display in WKWebView is added to your project. Load Local HTML File to a WKWebView let myUrl = myProjectBundle.url(forResource: “my-html-file”,…Read More WKWebView. Load HTML File from App Bundle.
I am putting together a new section on my blog which is called Swift Code Examples. This section will contain many pages of short code snippets in Swift for those who prefer to learn by code examples. I am one of those by the way :). The new section has already been added to the main menu of…Read More Swift Code Examples
This is an experimental, short and very simple video tutorial I have recorded to explain how Tuples work to a couple of my online friends. So sorry for the sound quality. I was on the go and did not have my mic with me. Do not be too critical 🙂 and I hope the content…Read More Swift Tuples. How Tuples work in Swift