Skip to content

Commit bca620f

Browse files
author
Pedro Aim
committed
added webview and accessory view as public
1 parent 8645868 commit bca620f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# TheRichTextEditor
22

3-
A description of this package.
3+
A work in progress Rich Editor for iOS using Swift and WKWebView
4+
5+
## Installation
6+
7+
just add `https://github.com/Criptext/TheRichTextEditor` to your Swift Package Manager
48

59
<div>Icons made by <a href="https://www.flaticon.com/authors/bqlqn" title="bqlqn">bqlqn</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>

Sources/TheRichTextEditor/TheRichTextEditor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class TheRichTextEditor: UIView, WKScriptMessageHandler, WKNavigationDele
6262
public var preview: String = ""
6363
public var body: String = ""
6464

65-
var webView: WKWebView!
65+
public var webView: WKWebView!
6666

6767
public override init(frame: CGRect = .zero) {
6868
super.init(frame: frame)
@@ -74,7 +74,7 @@ public class TheRichTextEditor: UIView, WKScriptMessageHandler, WKNavigationDele
7474
setup()
7575
}
7676

77-
var enableAccessoryView: Bool {
77+
public var enableAccessoryView: Bool {
7878
set {
7979
(webView as? CustomWebview)?.enableAccessoryView = newValue
8080
}

0 commit comments

Comments
 (0)