I was updating my iOS app to be able to run on Xcode 12.5 (beta) and noticed that Apple is now flagging the use of class inherited protocols as deprecated in favor of inheriting from AnyObject. In my iOS app, we flag warnings as errors so now our app won't compile. I wanted to be able to pitch in and help modernize the code so I went ahead and fixed this deprecation here.
After a little bit of research, I came across this forum Swift.org post which seems to point to the discussion where this deprecation discussion started.
Requirements (place an x in each of the [ ])
[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
Summary
I was updating my iOS app to be able to run on Xcode 12.5 (beta) and noticed that Apple is now flagging the use of
class
inherited protocols asdeprecated
in favor of inheriting fromAnyObject
. In my iOS app, we flag warnings as errors so now our app won't compile. I wanted to be able to pitch in and help modernize the code so I went ahead and fixed this deprecation here.After a little bit of research, I came across this forum Swift.org post which seems to point to the discussion where this deprecation discussion started.
Requirements (place an
x
in each of the[ ]
)