diff --git a/Note/FormatterView.swift b/Note/FormatterView.swift index 4d0c8f2..da369f5 100644 --- a/Note/FormatterView.swift +++ b/Note/FormatterView.swift @@ -40,6 +40,9 @@ struct FormatterView: View { .padding() .navigationTitle("文案格式化") .background(Color(hex: "f2f2f7").ignoresSafeArea()) + .onTapGesture { + UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) + } .navigationDestination(item: $resultText) { text in ResultView(formattedText: text) }