Skip to content

Commit

Permalink
Update dependencies & add @haifengkao request. (#68)
Browse files Browse the repository at this point in the history
* wrap iOS only codes by #if clause @haifengkao

* update dependencies

---------

Co-authored-by: Oguz Yuksel <oguz.yueksel@teufel.de>
  • Loading branch information
OguzYuuksel and Oguz Yuksel committed Jan 29, 2024
1 parent f220855 commit 453700e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/teufelaudio/FoundationExtensions.git",
"state" : {
"revision" : "6b9bd39109a1634112c325aa2e4a6a63d58a6254",
"version" : "0.5.1"
"revision" : "c441f8fa10ee6c93ce4d4d3939a8bd683987e48f",
"version" : "0.6.2"
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions Sources/UIExtensions/Extensions/UIWindow+MotionEnded.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright © 2023 Lautsprecher Teufel GmbH. All rights reserved.

#if canImport(UIKit)
import UIKit

extension NSNotification.Name {
Expand All @@ -17,3 +18,4 @@ extension UIWindow {
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © 2023 Lautsprecher Teufel GmbH. All rights reserved.

#if canImport(SwiftUI) && canImport(UIKit)
import SwiftUI

struct ShakeGestureViewModifier: ViewModifier {
let action: () -> Void

Expand All @@ -17,3 +17,4 @@ extension View {
self.modifier(ShakeGestureViewModifier(action: action))
}
}
#endif

0 comments on commit 453700e

Please sign in to comment.