Juliet C. answered 07/05/19
Tutor
5.0
(788)
Multiple semesters of teaching Swift in iOS app development courses
Using the ": class" after the protocol name restricts the protocol to being adopted by classes only, not structs or enums. This is now the same as using ": AnyObject" after the protocol name.