From a76e70276a596088a16cb408e0b99521a9cd9787 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Tue, 22 Sep 2020 10:26:59 -0400 Subject: [PATCH] Move View+Keyboard extension to /iOS/Extensions --- WriteFreely-MultiPlatform.xcodeproj/project.pbxproj | 2 +- {Shared => iOS}/Extensions/View+Keyboard.swift | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) rename {Shared => iOS}/Extensions/View+Keyboard.swift (86%) diff --git a/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj b/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj index dac50bc..ab75630 100644 --- a/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj +++ b/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj @@ -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; diff --git a/Shared/Extensions/View+Keyboard.swift b/iOS/Extensions/View+Keyboard.swift similarity index 86% rename from Shared/Extensions/View+Keyboard.swift rename to iOS/Extensions/View+Keyboard.swift index a24c81c..687ddac 100644 --- a/Shared/Extensions/View+Keyboard.swift +++ b/iOS/Extensions/View+Keyboard.swift @@ -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