I\'m a bit confused. What\'s the difference between protocol A : class { ... } and protocol A{ ... }, and which one we should use in swift?
protocol A : class { ... }
protocol A{ ... }
You can make the protocol derive from any class type like NSObject, or AnyObject. e.g :
protocol TopNewsTableDelegate : AnyObject{ func topNewsTableDidLoadedStories() }