We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cece0 commit 7e1dd8aCopy full SHA for 7e1dd8a
1 file changed
Sources/SelectableCollectionView/Utilities/NavigationDirection.swift
@@ -18,17 +18,21 @@
18
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
// SOFTWARE.
20
21
-#if os(macOS)
22
+import Foundation
23
+
24
+#if os(macOS)
25
import AppKit
26
import Carbon
27
+#endif
28
29
enum NavigationDirection {
30
case up
31
case down
32
case left
33
case right
34
35
36
init?(_ keyCode: UInt16) {
37
switch Int(keyCode) {
38
case kVK_LeftArrow:
@@ -43,7 +47,6 @@ enum NavigationDirection {
43
47
return nil
44
48
}
45
49
50
46
51
52
-
-#endif
0 commit comments