Move View+Keyboard extension to /iOS/Extensions

This commit is contained in:
Angelo Stavrow 2020-09-22 10:26:59 -04:00
parent 9de53d828f
commit a76e70276a
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 1 additions and 3 deletions

View File

@ -211,7 +211,6 @@
1756AE7F24CB841200FD7257 /* Extensions */ = {
isa = PBXGroup;
children = (
1756AE8024CB844500FD7257 /* View+Keyboard.swift */,
17C42E6F250AA12200072984 /* NSManagedObjectContext+ExecuteAndMergeChanges.swift */,
17480CA4251272EE00EB7765 /* Bundle+AppVersion.swift */,
);
@ -244,6 +243,7 @@
17681E3F251940F200D394AE /* Extensions */ = {
isa = PBXGroup;
children = (
1756AE8024CB844500FD7257 /* View+Keyboard.swift */,
17681E402519410E00D394AE /* UINavigationController+Appearance.swift */,
);
path = Extensions;

View File

@ -1,9 +1,7 @@
import SwiftUI
#if canImport(UIKit)
extension View {
func hideKeyboard() {
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
}
}
#endif