代码如下:
private lazy var messageInputView: MessageSessionInputView = {
let inputView = MessageSessionInputView.loadFromNib()
inputView.configure(with: textInputViewModel)
return inputView
}()
override var canBecomeFirstResponder: Bool {
return true
}
override var canResignFirstResponder: Bool {
return true
}
override var inputAccessoryView: UIView? {
let textInputView = messageInputView
return textInputView
}
解雇操作是交互式的。
任何干净的方法可以解决此问题?