Generic: Is there a way to make compiler check T is a particular UIView subclass?

前端 未结 0 912
生来不讨喜
生来不讨喜 2021-01-14 01:31

Currently, I have the following handy generic function, which enables me to create custom view from XIB

extension UIView {
    static func instanceFromNib<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题