Skip to content

Commit

Permalink
Merge pull request #1327 from knox/develop
Browse files Browse the repository at this point in the history
Fix iOS 13 deprecation
  • Loading branch information
guarani authored Mar 17, 2021
2 parents 10e9b8c + ed33c10 commit d26c0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aztec/Classes/EditorView/EditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ extension EditorView: UITextInput {
return activeView.characterRange(byExtending: position, in: direction)
}

public func baseWritingDirection(for position: UITextPosition, in direction: UITextStorageDirection) -> UITextWritingDirection {
public func baseWritingDirection(for position: UITextPosition, in direction: UITextStorageDirection) -> NSWritingDirection {
return activeView.baseWritingDirection(for: position, in: direction)
}

public func setBaseWritingDirection(_ writingDirection: UITextWritingDirection, for range: UITextRange) {
public func setBaseWritingDirection(_ writingDirection: NSWritingDirection, for range: UITextRange) {
activeView.setBaseWritingDirection(writingDirection, for: range)
}

Expand Down

0 comments on commit d26c0ed

Please sign in to comment.