How we found an easy way to pass a user's API credentials from a web page to our iOS application to support single-account, multiple-login using WKWebView.
Be aware of Swift's inability to efficiently parse and compile simple Dictionary/Array literals. The compilation time grows exponentially with each line.