How to reference Swift enum in Objective-C Header

前端 未结 7 2056
星月不相逢
星月不相逢 2021-01-31 19:38

Is there a way to reference a Swift enum from an Objective-C header? If you want to see Swift classes in the Objective-C header you can use

@objc class Foo


        
相关标签:
7条回答
  • 2021-01-31 20:20

    typedef SWIFT_ENUM(NSInteger, MyEnum);

    0 讨论(0)
提交回复
热议问题