Skip to content

Commit 0a735f6

Browse files
committed
Fix multi-platform builds
1 parent 2f291d9 commit 0a735f6

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

Sources/SwiftUIKit/Views/FetchedDataView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public struct FetchedDataView<Model, Content: View, LoadingView: View, NoDataVie
7777
let noDataView = Text("Preview.NoData")
7878

7979
var body: some View {
80-
if #available(iOS 17.0, *) {
80+
if #available(iOS 17.0, tvOS 17.0, macOS 15.0, watchOS 11.0, visionOS 1.0, *) {
8181
FetchedDataView(
8282
data: nilData,
8383
isLoading: false,

Sources/SwiftUIKit/_Deprecated/CustomRoundedRectangle.swift

-17
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,3 @@ public struct CustomRoundedRectangle: Shape {
5555
return path
5656
}
5757
}
58-
59-
#Preview {
60-
61-
if #available(iOS 16.0, *) {
62-
VStack {
63-
Color.red.clipShape(
64-
UnevenRoundedRectangle(cornerRadii: .init(
65-
topLeading: 10,
66-
bottomLeading: 30,
67-
bottomTrailing: 40,
68-
topTrailing: 20
69-
))
70-
)
71-
}
72-
.padding()
73-
}
74-
}

0 commit comments

Comments
 (0)