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). -
AnyObjectandclassare equivalent. There is no difference. -
classwill eventually be deprecated.