Name collisions for extension methods from different frameworks

前端 未结 3 1160
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 06:36

As a test, I created two frameworks. Both frameworks contain this extension:

public extension UIDevice {
    var extraInfo: UIDeviceExtraInfo {
        return U         


        
3条回答
  •  余生分开走
    2021-02-04 07:15

    After doing a bit of experimentation, the only way I've found is to only import one of the frameworks into your source file.

提交回复
热议问题