From 0e17c444934ab5608bbbd19e4c1688bad857de1d Mon Sep 17 00:00:00 2001 From: Christian Fruth Date: Tue, 20 Jul 2021 11:33:34 +0200 Subject: [PATCH] Fixes unsupported iOSApplicationExtension target in XCode 13 Beta 3 --- Sources/BottomSheet/BottomSheetView.swift | 2 ++ Sources/BottomSheet/ViewExtension.swift | 1 + 2 files changed, 3 insertions(+) diff --git a/Sources/BottomSheet/BottomSheetView.swift b/Sources/BottomSheet/BottomSheetView.swift index 18433f501..97ebe7a71 100644 --- a/Sources/BottomSheet/BottomSheetView.swift +++ b/Sources/BottomSheet/BottomSheetView.swift @@ -7,6 +7,7 @@ import SwiftUI +@available(iOSApplicationExtension, unavailable) internal struct BottomSheetView: View where bottomSheetPositionEnum.RawValue == CGFloat, bottomSheetPositionEnum: CaseIterable { @State private var translation: CGFloat = 0 @@ -251,6 +252,7 @@ internal struct BottomSheetView>>, _PaddingLayout> { init(bottomSheetPosition: Binding, options: [BottomSheet.Options], title: String?, @ViewBuilder content: () -> mContent) { if title == nil { diff --git a/Sources/BottomSheet/ViewExtension.swift b/Sources/BottomSheet/ViewExtension.swift index 3d3500872..7dfab9e0f 100644 --- a/Sources/BottomSheet/ViewExtension.swift +++ b/Sources/BottomSheet/ViewExtension.swift @@ -7,6 +7,7 @@ import SwiftUI +@available(iOSApplicationExtension, unavailable) public extension View { /** A modifer to add a BottomSheet to your view.