 
         animator.startAnimation()
 
-        isCustomInputViewHidden = hidden
         preferredInputViewType = type
-    }
-
-    override var inputAccessoryView: UIView? {
-        guard isCustomInputViewHidden else {
-            return nil
-        }
-        preferredAccessoryView?.apply(theme: theme)
-        return preferredAccessoryView
     }
 
     override func viewDidLoad() {


    private func configureAccessoryViews() {
        defaultEditToolbar.delegate = self
    }

    private func setCursorPositionIfNeeded() {
        let shouldSetCursor = !textView.isFirstResponder

        guard shouldSetCursor else {
            return
        }

        let newPosition = textView.beginningOfDocument
        textView.selectedTextRange = textView.textRange(from: newPosition, to: newPosition)
    }

    private func loadWikitext() {


    var preferredInputViewType: TextFormattingInputViewController.InputViewType?

    private var previousPreferredAccessoryView: (UIView & Themeable)?
    private var preferredAccessoryView: (UIView & Themeable)? {
        didSet {
            previousPreferredAccessoryView = oldValue

            preferredAccessoryView?.apply(theme: theme)
            textView.inputAccessoryView = preferredAccessoryView

            if preferredAccessoryView != nil && oldValue != nil {
                textView.reloadInputViews()
            }
        }
    }

