Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down