SWIFT – How to use protocol extensions in WHERE clauses

protocol aView: class {} 

extension aView where Self: UIView {}

Anyone can help me understand This code?

Your extension extends functionality to all of the following types:

>Comply with aView

and

>Belong to UIView type

protocol aView: class {} 

extension aView where Self: UIView {}

Can anyone help me understand this code?

Your extension extends the functionality to all of the following types:

>Compliant with aView

and

>Belong to UIView type

Leave a Comment

Your email address will not be published.