Skip to content

Commit 9749237

Browse files
committed
Fixed watchos compability.
1 parent 67ea757 commit 9749237

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
)
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.9")),
19+
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.16")),
2020
.package(url: "https://github.com/siteline/swiftui-introspect", .upToNextMajor(from: "1.3.0"))
2121
],
2222
targets: [

Sources/SwiftUIExtension/Extensions/NavigationTransitionExtension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import SwiftUI
33
extension View {
44

55
public func matchedTransitionSourceCompability(id: some Hashable, in namespace: Namespace.ID) -> some View {
6-
if #available(iOS 18.0, macOS 14.0, visionOS 2.0, *) {
6+
if #available(iOS 18.0, macOS 14.0, visionOS 2.0, watchOS 11.0, *) {
77
return self.matchedTransitionSource(id: id, in: namespace)
88
} else {
99
return self
1010
}
1111
}
1212

1313
public func navigationTransitionZoom(id: some Hashable, in namespace: Namespace.ID) -> some View {
14-
if #available(iOS 18.0, macOS 14.0, visionOS 2.0, *) {
14+
if #available(iOS 18.0, macOS 14.0, visionOS 2.0, watchOS 11.0, *) {
1515
return self.navigationTransition(.zoom(sourceID: id, in: namespace))
1616
} else {
1717
return self

Sources/SwiftUIExtension/LayoutGuides/LayoutGuides.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import SwiftUI
33

44
extension View {
55

6-
public func fitGuide(_ guide: LayoutGuide, padding: LayoutPadding = .view) -> some View {
6+
public func fitGuide(_ guide: LayoutGuide, padding: LayoutPadding = LayoutPadding.view) -> some View {
77
self.modifier(FitGuide(with: guide, to: padding))
88
}
99
}

Sources/SwiftUIExtension/Views/Mimicrate/ScrollWithBottomContent.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if os(iOS) || os(tvOS)
12
import SwiftUI
23

34
public struct ScrollWithBottomContent<Content: View, Bottom: View>: View {
@@ -37,4 +38,4 @@ public struct ScrollWithBottomContent<Content: View, Bottom: View>: View {
3738
}
3839
}
3940
}
40-
41+
#endif

0 commit comments

Comments
 (0)