Extending a Swift class with Objective-C category

后端 未结 3 1960
迷失自我
迷失自我 2020-12-14 16:48

Im in a situation where I need to use Objective-C category to extend a Swift class. I\'ve done something as follows:

In \"SomeClass.swift\":

class So         


        
3条回答
  •  难免孤独
    2020-12-14 17:23

    As one simple solution, you can move the extension to your Swift code. Then you won't have any dependency problems.

提交回复
热议问题