memory management
-

Fix: ‘weak cannot be applied to non-class type’ Error for Swift Protocol Delegates
Learn why Swift protocols need AnyObject for weak delegates and how to fix the compile error without using @objc.

Learn why Swift protocols need AnyObject for weak delegates and how to fix the compile error without using @objc.