From ed33c10f028223fdb10bf41b846c484ba4f06358 Mon Sep 17 00:00:00 2001 From: Mickey Knox Date: Wed, 17 Mar 2021 16:42:50 +0100 Subject: [PATCH] Fix iOS 13 deprecation --- Aztec/Classes/EditorView/EditorView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aztec/Classes/EditorView/EditorView.swift b/Aztec/Classes/EditorView/EditorView.swift index 53d727161..2df843372 100644 --- a/Aztec/Classes/EditorView/EditorView.swift +++ b/Aztec/Classes/EditorView/EditorView.swift @@ -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) }