Does anyone know what the difference is between these two types?
The docs only refer to Int but Xcode 6 auto complete only gives me Integer whe
Int
Integer
An Int is the type whilst an Integer is a protocol it implements.
You should be using Int in declarations, i.e:
var num: Int = 5
which is also the type that's inferred for integer literals when a type isn't specified, i.e:
var num = 5