IBDesignable from External Framework?

后端 未结 4 1287
悲&欢浪女
悲&欢浪女 2020-12-29 07:44

I\'d like to create some custom views that use the @IBDesignable and @IBInspectable tags. I have added these to my Framework and then linked my Fra

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 08:24

    UICircularProgressRing solves this by adding the Swift file containing the @IBDesignable class in the framework Headers folder. To do this, select the Xcode project of the framework, select the framework's target, then go to Build Phases tab and expand the Headers phase, and drop the Swift file into Public:

提交回复
热议问题