IQKeyboardManager – 启用拆分视图时键盘布局错误

IQKeyboardManager – wrong keyboard layout when split view is enabled

启用键盘拆分模式后,我在使用 IQKeyboardManager 时遇到了一个奇怪的问题。
键盘背景不透明:

但不使用IQKeyboardManager时键盘背景是透明的:

编辑 如何重现:

//AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    ...
    IQKeyboardManager.shared.enable = true
    ...
}

//ViewController.swift
override func viewDidLoad() {
    ...
    textField.keyboardDistanceFromTextField = 140 // or any constant
    ...
}

有什么建议吗?谢谢!

我从 IQKeyboardManager library's maintainer (answer 那里得到了答案。 如果禁用 autoToolbar,键盘背景将完全透明:

IQKeyboardManager.shared.enableAutoToolbar = false