From 3ddaa02fe54f8083e5bf0ab83257b9df65bf8107 Mon Sep 17 00:00:00 2001 From: Dominic Williams Date: Wed, 4 Aug 2021 19:19:52 +0100 Subject: [PATCH] Xcode 13 SPM fix (#121) Fix for changed behaviour for SPM on Xcode 13b3 and Xcode 13b4 --- Sources/PartialSheet/PartialSheetViewModifier.swift | 5 +++++ Sources/PartialSheet/View+PartialSheetModifier.swift | 1 + 2 files changed, 6 insertions(+) diff --git a/Sources/PartialSheet/PartialSheetViewModifier.swift b/Sources/PartialSheet/PartialSheetViewModifier.swift index 769f61e..92d61b4 100644 --- a/Sources/PartialSheet/PartialSheetViewModifier.swift +++ b/Sources/PartialSheet/PartialSheetViewModifier.swift @@ -10,6 +10,7 @@ import SwiftUI import Combine /// This is the modifier for the Partial Sheet +@available(iOSApplicationExtension, unavailable) struct PartialSheet: ViewModifier { // MARK: - Public Properties @@ -151,6 +152,7 @@ struct PartialSheet: ViewModifier { } //MARK: - Platfomr Specific Sheet Builders +@available(iOSApplicationExtension, unavailable) extension PartialSheet { //MARK: - Mac and iPad Sheet Builder @@ -248,6 +250,7 @@ extension PartialSheet { } // MARK: - Drag Gesture & Handler +@available(iOSApplicationExtension, unavailable) extension PartialSheet { /// Create a new **DragGesture** with *updating* and *onEndend* func @@ -319,6 +322,7 @@ extension PartialSheet { } // MARK: - Keyboard Handlers Methods +@available(iOSApplicationExtension, unavailable) extension PartialSheet { /// Add the keyboard offset @@ -352,6 +356,7 @@ extension PartialSheet { } // MARK: - PreferenceKeys Handlers +@available(iOSApplicationExtension, unavailable) extension PartialSheet { /// Preference Key for the Sheet Presener diff --git a/Sources/PartialSheet/View+PartialSheetModifier.swift b/Sources/PartialSheet/View+PartialSheetModifier.swift index 1c05f6c..b8fe69d 100644 --- a/Sources/PartialSheet/View+PartialSheetModifier.swift +++ b/Sources/PartialSheet/View+PartialSheetModifier.swift @@ -8,6 +8,7 @@ import SwiftUI +@available(iOSApplicationExtension, unavailable) extension View { /** Add a PartialSheet to the current view. You should attach it to your Root View.