diff --git a/Aztec/Classes/TextKit/TextView.swift b/Aztec/Classes/TextKit/TextView.swift index b0e28566a..2bcb3e410 100644 --- a/Aztec/Classes/TextKit/TextView.swift +++ b/Aztec/Classes/TextKit/TextView.swift @@ -1013,7 +1013,7 @@ open class TextView: UITextView { // From here on, it's just calling the same method in `super`. // let selector = #selector(TextView.replaceRangeWithTextWithoutClosingTyping(_:replacementText:)) - let imp = class_getMethodImplementation(self.superclass, selector) + let imp = class_getMethodImplementation(TextView.superclass(), selector) typealias ClosureType = @convention(c) (AnyObject, Selector, UITextRange, String) -> Void let superMethod: ClosureType = unsafeBitCast(imp, to: ClosureType.self)