Skip to content

Commit

Permalink
added webview and accessory view as public
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Aim committed Jan 11, 2021
1 parent 8645868 commit bca620f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TheRichTextEditor

A description of this package.
A work in progress Rich Editor for iOS using Swift and WKWebView

## Installation

just add `https://github.com/Criptext/TheRichTextEditor` to your Swift Package Manager

<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>
4 changes: 2 additions & 2 deletions Sources/TheRichTextEditor/TheRichTextEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class TheRichTextEditor: UIView, WKScriptMessageHandler, WKNavigationDele
public var preview: String = ""
public var body: String = ""

var webView: WKWebView!
public var webView: WKWebView!

public override init(frame: CGRect = .zero) {
super.init(frame: frame)
Expand All @@ -74,7 +74,7 @@ public class TheRichTextEditor: UIView, WKScriptMessageHandler, WKNavigationDele
setup()
}

var enableAccessoryView: Bool {
public var enableAccessoryView: Bool {
set {
(webView as? CustomWebview)?.enableAccessoryView = newValue
}
Expand Down

0 comments on commit bca620f

Please sign in to comment.