mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Move View+Keyboard extension to /iOS/Extensions
This commit is contained in:
parent
9de53d828f
commit
a76e70276a
@ -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;
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user