DEV Community

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

Collapse
 
myerschris78 profile image
Chris Myers

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

Collapse
 
donnywals profile image
Donny Wals

Functionally there isn’t but AnyObject is the preferred way since class is considered deprecated forums.swift.org/t/class-only-prot...