NudeIn icon indicating copy to clipboard operation
NudeIn copied to clipboard

在swift中怎么使用呀?我pod导入后,不会用,尴尬。。。

Open faithHyperion opened this issue 6 years ago • 1 comments

faithHyperion avatar May 24 '19 08:05 faithHyperion

  1. 在 swift 里混编 OC 代码需要需要使用桥接文件来实现混编,可以在网上找找相关例子
  2. 由于 混编机制,NudeIn 无法使用,可以改用 NUDTexView
import UIKit
import NudeIn
class ViewController: UIViewController {
    var label : NUDTextView?
    override func viewDidLoad() {
        super.viewDidLoad()
        label = NUDTextView.make({ (make) in
            make?.text()("d")?.color()(UIColor.red)?.font()(13)?.aligment()(NUDAlignment.aliCenter)?.attach()
        })
    }
}

hon-key avatar May 24 '19 14:05 hon-key