This was answered by an official Swift developer (Slava_Pestov) on the Swift forums. Here is the summary:
-
You should use
AnyObject
(protocol SomeProtocol: AnyObject
). -
AnyObject
andclass
are equivalent. There is no difference. -
class
will eventually be deprecated.