mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
8 lines
182 B
Swift
8 lines
182 B
Swift
|
import SwiftUI
|
||
|
|
||
|
extension View {
|
||
|
func hideKeyboard() {
|
||
|
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
|
||
|
}
|
||
|
}
|