Recently I have been developing an iOS app that comes with a companion Apple Watch extension. I wanted to play with the communication between iOS and WatchOS using func session(session:WCSession, didReceiveMessage message:[String:AnyObject]) via WatchConnectivity It was working well and I thought …

Swift: When you have an Optional String you need to remove Read more »

I was asked recently to modify the UIScrollViews that I implemented in an iOS application design. The request was to have our scroll views behave like the ones that appear in the iOS App Store. Here is a screen capture …

[Swift] UIScrollView snapping into place like in the iOS App Store Read more »

I spotted this extension somewhere online a while ago (kjmcneish?) that can come in pretty handy. extension String { // Returns a range of characters (e.g. s[0…3]) subscript (r: Range<Int>) -> String { let start = advance(self.startIndex, r.startIndex) let end …

String extension for range of characters/character at nth position Read more »