mac-cain13 / CoreDataKit

CoreDataKit makes common operations on objects and importing into CoreData a breeze.
MIT License
35 stars 17 forks source link

performBlock(block: PerformBlock ... method cause Xcode syntax error if completion handler is nil #30

Open eugeniobaglieri opened 9 years ago

eugeniobaglieri commented 9 years ago

Xcode expand the parameter placeholder like in the second row but that form without round parenthesis is permitted only when the closure is the last parameter (not this case because completion handler has a default nil value). Should split the method in two method

screenshot 2015-09-10 14 39 02