I\'m getting an image\'s Size and used the below code. It was working perfectly fine with Xcode 6.0.1. After updating to Xcode 6.1, I\
Size
Xcode 6.0.1
Xcode 6.1
In addition to @Antonio's answer you can use nil coalescing operator(??) to get a default size in case image initializer is failed. Here is how:
let size = image?.size ?? CGSizeZero