IBOutletCollection in Swift?

When I tried to write IBOutletCollection in a Swift class, I was badly surprised that Xcode didn’t help me to write it. I was wondering if IBOutletCollection is supported at all in Swift and yes it is! It is just easier than I thought – instead of using two different identifiers (IBOutletCollection and IBOutlet) only IBOutlet is now supported.

Example in Swift (new style):

Example in Objective-C (old style):

  1. Gary
  2. iOSDev MM Creative
  3. Kam

Leave a Reply

Your email address will not be published. Required fields are marked *