class YYTextViewCamera: YYTextView {
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
let allow = super.canPerformAction(action, withSender: sender)
if #available(iOS 15.0, *) {
if allow == false,(action == #selector(captureTextFromCamera(_:))) {
return true
}
}
return allow
}
}
网友评论