Skip to content

Commit

Permalink
Make relativeCaretYPosition public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu Mohan committed Feb 1, 2019
1 parent 5f0aac2 commit 86302e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RichEditorView/Classes/RichEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ import UIKit
/// For example, if the cursor is directly at the top of what is visible, it will return 0.
/// This also means that it will be negative if it is above what is currently visible.
/// Can also return 0 if some sort of error occurs between JS and here.
private var relativeCaretYPosition: Int {
public var relativeCaretYPosition: Int {
let string = runJS("RE.getRelativeCaretYPosition();")
return Int(string) ?? 0
}
Expand Down

0 comments on commit 86302e5

Please sign in to comment.