包装在UIViewRepresentable中的UITextView不显示复制/粘贴菜单

时间:2020-03-18 14:55:11

标签: ios uikit uitextview swiftui uiviewrepresentable

Screen

这是具有覆盖方法的自定义文本视图

override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
    return (action == #selector(UIResponderStandardEditActions.copy(_:)))
}

0 个答案:

没有答案