Apokrupto

I do apps...

  • Blog
  • About

Confused by Swift protocols

May 16, 2016 by Warren Gavin

I just found a strange situation in Swift and, typically for that moment when you're learning something, I'm not sure if I've found a bug, a feature or something really clever I just don't understand.

Read More
May 16, 2016 /Warren Gavin
swift
Comment

A lazy write-once Swift setter

April 03, 2016 by Warren Gavin

An interesting post on Natasha the Robot's blog about data injection with storyboards and segues in swift got me to thinking. I'm using the same pattern as described in the post to set my data sources and other gubbins in prepareForSegue(_:sender:), and it seems 

  1. Pretty unavoidable if you want to use segues as they're designed
  2. Uncomfortably permissive
Read More
April 03, 2016 /Warren Gavin
swift, iOS

JSON and the arguments

April 03, 2016 by Warren Gavin

The iPhreaks podcast episode with Josh Brown was a good insight into JSON parsing in Swift. I didn't think it could be possible to have enough material for an entire book, but it turns out there is plenty.

Read More
April 03, 2016 /Warren Gavin
iOS, swift

All content © Warren Gavin.   |   Powered by Squarespace