DEV Community

Discussion on: Using Xcode's memory graph to find memory leaks

myerschris78 profile image
Chris Myers

Is there any difference between marking the protocol as DataDelegate: AnyObject vs. DataDelegate: class ?

donnywals profile image
Donny Wals Author

Functionally there isn’t but AnyObject is the preferred way since class is considered deprecated