ZSSRichTextEditor icon indicating copy to clipboard operation
ZSSRichTextEditor copied to clipboard

How to use this in Swift

Open bharathreddy-97 opened this issue 8 years ago • 4 comments

How can i use this in swift? which headers should i add to bridging header?

bharathreddy-97 avatar Apr 17 '17 11:04 bharathreddy-97

#import "ZSSRichTextEditor.h"

Adding above line is enough for having it in swift.

Mehul18292 avatar Aug 16 '17 05:08 Mehul18292

If you using cocoapod, the line will be #import "ZSSRichTextEditor/ZSSRichTextEditor.h"

JeromeTW avatar Oct 30 '17 07:10 JeromeTW

After testing, I found that framework from cocoapod is different from sample's framework. It miss a lot of functions. So manually using ZSSRichTextEditor is a better choice.

manually using ZSSRichTextEditor in swift steps: 1.Copy the Source folder to your project. 2.add the line #import "ZSSRichTextEditor.h" in your bridging header 3.configure Build Phases like following screenshot:

2017-10-31 9 27 54 2017-10-31 9 28 16 2017-10-31 9 28 32

JeromeTW avatar Oct 31 '17 01:10 JeromeTW

here is the implementation in swift link, u can use Coordinator to use it in swiftUI

kodekarim avatar Nov 06 '22 09:11 kodekarim