This change replaces the usage of the class keyword to define a class-constrained protocol with AnyObject. This addresses the deprecation warning related to the class keyword.
Changes Made
Updated the previous class-constrained protocol definition to use AnyObject.
Before
protocol MyProtocol: class {
// Protocol content
}
Overview
This change replaces the usage of the
class
keyword to define a class-constrained protocol withAnyObject
. This addresses the deprecation warning related to theclass
keyword.Changes Made
Updated the previous class-constrained protocol definition to use
AnyObject
.Before
After