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):
@IBOutlet var tabBarButtons: [UIButton]!
Example in Objective-C (old style):
@property (nonatomic, strong) IBOutletCollection(UIButton) NSArray *tabBarButtons;