Reputation: 165
protocol aView: class { }
extension aView where Self: UIView { }
Can any one please help me to understand this code?
Upvotes: 3
Views: 2957
Reputation: 19602
Your extension extends functionality to all types that:
aView
and
UIView
Upvotes: 11