Container View Controllers

Massive View Controllers are a common pain with iOS development. A quick search will give you much good advice on how to slim down these monsters. In this post I want to give some attention to the often overlooked use of Container View Controllers.

Read On →

Swift Integer Quick Guide

If you are new to Swift and have some experience with “C” style languages you probably have not given the Swift integer types much thought. They mostly work as you expect until one day something catches you out.

There were a number of operators such as the overflow operators &+, &- and &*, dealing with exact bit patterns and failable numeric intializers that were new to me. So here is my quick guide to Swift integers.

Read On →

Swift Hashable

I already covered making a custom Swift type Equatable and Comparable which allows us to test if an Array contains an instance of our type or to sort the array amongst other things. What if we want to store our type in a Set or Dictionary?

Read On →

Swift Equatable and Comparable

Not sure when you should make your Swift types Equatable? What about Comparable? In this post I look at two common situations where using the Swift Standard Library gets easier when you do.

Read On →

Cleaning up Core Data Fetch Requests

Core Data got a number of usability improvements in iOS 10. I have already written about NSPersistentContainer and Model Code Generation. In this post I round-up some other changes in iOS 10 and some quick tips you can use to clean up common Core Data code cluttering your view controllers.

Read On →
Archives Categories