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