I just "fixed" the crash with this swizzle hack:
extension UIFocusSystem {
static func swizzle() {
let originalSel = #selector(UIFocusSystem.updateFocusIfNeeded)
let newSel = #selector(UIFocusSystem._updateFocusIfNeeded)
let originalMethod = class_getInstanceMethod(self, originalSel)!
let newMethod = class_getInstanceMethod(self, newSel)!
method_exchangeImplementations(originalMethod, newMethod)
}
@objc func _updateFocusIfNeeded() {
}
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: