I've just installed Xcode 7 beta 4 and suddenly I'm getting a compiler error on
@objc class UtilityFunctions
saying
Only classes that inherit from NSObject can be declared @objc
The 'Using Swift with Cocoa and Object-C (Swift 2 Prerelease)' book states
A Swift class or protocol must be marked with the @objc attribute to be accessible and usable in Objective-C. This attribute tells the compiler that this piece of Swift code can be accessed from Objective-C. If your Swift class is a descendant of an Objective-C class, the compiler automatically adds the @objc attribute for you.
This was working fine in beta 3. I can get it to compile by making the class inheritfrom NSObject but that shouldn't be necessary according to the quote above. Anyone know what's going on? Has @objc suddenly been deprecated in favour of inheriting from NSObject?