如何处理 swift 类 同名?
How to handle swift classes having same name?
我正在使用 swiftsoup 库,因为其中有文档 class 我用它来解析 html 文档。但是在我的团队中,我的一个朋友为不同的 purpose.Now 创建了文档 class,在他的 pull.Is 有任何方法可以同时使用这两个 class 之后,我的代码与我的代码冲突?
错误是 "Cannot convert value of type 'Document' to specified type 'Document'"
提前致谢
模块是命名空间。 SwiftSoup.Document
不是 MyApp.Document
。
更好的是,首先使用 Refactor -> Rename 并防止冲突。
我正在使用 swiftsoup 库,因为其中有文档 class 我用它来解析 html 文档。但是在我的团队中,我的一个朋友为不同的 purpose.Now 创建了文档 class,在他的 pull.Is 有任何方法可以同时使用这两个 class 之后,我的代码与我的代码冲突? 错误是 "Cannot convert value of type 'Document' to specified type 'Document'" 提前致谢
模块是命名空间。 SwiftSoup.Document
不是 MyApp.Document
。
更好的是,首先使用 Refactor -> Rename 并防止冲突。