With the recent deprecation and future removal of the post and pre
increment and decrement operators in Swift, I recently updated the code
in Catchlines, my Swift project, ready for these changes. Most of the work
was very simple and involved swapping n++
with n += 1
or similar. I
only had one case where I was actually relying on the post increment
behaviour.
Brent Simmons has been discussing implementing a responder chain in Swift,
Joe Groff responded with a suggestion to use as?
and a protocol to
implement this behaviour, so I thought I'd have a quick stab at it on the train
to work.
If you want to display HTML content from within a native iOS App, UIKit
provides you with a class for just that purpose, UIWebView
. In this post
we will look at setting up and loading a web view, getting messages when
interesting things happen, and then communicating between the App and the
HTML content using JavaScript.