The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FitHeightSheet, reference 1.0.0 (ef47b9), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 15:31:09 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KyawTheMonkey/FitHeightSheet.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KyawTheMonkey/FitHeightSheet
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at ef47b9f chore: added tutorial article
Cloned https://github.com/KyawTheMonkey/FitHeightSheet.git
Revision (git rev-parse @):
ef47b9f75d6545f3c1a228fdef3ebef3eeaddeb7
SUCCESS checkout https://github.com/KyawTheMonkey/FitHeightSheet.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/KyawTheMonkey/FitHeightSheet.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/11] Compiling FitHeightSheet Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:27:21: error: cannot find 'UIApplication' in scope
25 |
26 | func availableContentHeight(topContentInset: CGFloat) -> CGFloat {
27 |   let safeAreaTop = UIApplication.shared.connectedScenes
   |                     `- error: cannot find 'UIApplication' in scope
28 |     .filter { $0.activationState == .foregroundActive }
29 |     .first(where: { $0 is UIWindowScene })
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:29:27: error: cannot find type 'UIWindowScene' in scope
27 |   let safeAreaTop = UIApplication.shared.connectedScenes
28 |     .filter { $0.activationState == .foregroundActive }
29 |     .first(where: { $0 is UIWindowScene })
   |                           `- error: cannot find type 'UIWindowScene' in scope
30 |     .flatMap({ $0 as? UIWindowScene })?
31 |     .windows
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:30:23: error: cannot find type 'UIWindowScene' in scope
28 |     .filter { $0.activationState == .foregroundActive }
29 |     .first(where: { $0 is UIWindowScene })
30 |     .flatMap({ $0 as? UIWindowScene })?
   |                       `- error: cannot find type 'UIWindowScene' in scope
31 |     .windows
32 |     .first(where: \.isKeyWindow)?
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:28:38: error: cannot infer contextual base in reference to member 'foregroundActive'
26 | func availableContentHeight(topContentInset: CGFloat) -> CGFloat {
27 |   let safeAreaTop = UIApplication.shared.connectedScenes
28 |     .filter { $0.activationState == .foregroundActive }
   |                                      `- error: cannot infer contextual base in reference to member 'foregroundActive'
29 |     .first(where: { $0 is UIWindowScene })
30 |     .flatMap({ $0 as? UIWindowScene })?
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:32:19: error: cannot infer key path type from context; consider explicitly specifying a root type
30 |     .flatMap({ $0 as? UIWindowScene })?
31 |     .windows
32 |     .first(where: \.isKeyWindow)?
   |                   `- error: cannot infer key path type from context; consider explicitly specifying a root type
33 |     .safeAreaInsets.top ?? 0
34 |   return UIScreen.main.bounds.height - topContentInset - safeAreaTop
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/Helpers.swift:34:10: error: cannot find 'UIScreen' in scope
32 |     .first(where: \.isKeyWindow)?
33 |     .safeAreaInsets.top ?? 0
34 |   return UIScreen.main.bounds.height - topContentInset - safeAreaTop
   |          `- error: cannot find 'UIScreen' in scope
35 | }
36 |
[4/11] Compiling FitHeightSheet FitHeightSheetModifire.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:11:4: error: 'Binding' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:12:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:13:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:14:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 15 |   @State private var contentHeight = CGFloat.zero
 16 |   @State private var contentHeightChanged = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:15:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 16 |   @State private var contentHeightChanged = false
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:16:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
 16 |   @State private var contentHeightChanged = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 17 |
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:18:4: error: 'Environment' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 16 |   @State private var contentHeightChanged = false
 17 |
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
    |    `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |
 20 |   private let backdropColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:20:30: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
 19 |
 20 |   private let backdropColor: Color
    |                              `- error: 'Color' is only available in macOS 10.15 or newer
 21 |   private let backdropOpacity: CGFloat
 22 |   private let presentAnimation: AnimationConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:34:29: error: 'Gesture' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               |             `- error: 'Gesture' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:65:18: error: 'Binding' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 62 |   }
 63 |
 64 |   init(
    |   `- note: add @available attribute to enclosing initializer
 65 |     isPresented: Binding<Bool>,
    |                  `- error: 'Binding' is only available in macOS 10.15 or newer
 66 |     backdropStyle: BackdropStyle,
 67 |     presentAnimation: AnimationConfiguration,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:72:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 62 |   }
 63 |
 64 |   init(
    |   `- note: add @available attribute to enclosing initializer
 65 |     isPresented: Binding<Bool>,
 66 |     backdropStyle: BackdropStyle,
    :
 70 |     dismissThreshold: CGFloat,
 71 |     onDismiss: (() -> Void)?,
 72 |     @ViewBuilder _ body: @escaping () -> Body
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 73 |   ) {
 74 |     self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:85:39: error: 'View' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 83 |   }
 84 |
 85 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 86 |     ZStack {
 87 |       content
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:10:37: error: 'View' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        |                            `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:39:8: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
 37 |         dragOffsetY = value.translation.height
 38 |       }
 39 |       .onEnded { value in
    |        |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |        `- note: add 'if #available' version check
 40 |         guard !fitInteractiveDismissDisabled else {
 41 |           withAnimation(presentAnimation.value) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:35:5: error: 'DragGesture' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
    |     |- error: 'DragGesture' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
 36 |       .onChanged { value in
 37 |         dragOffsetY = value.translation.height
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:35:5: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
    |     |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
    |     `- note: add 'if #available' version check
 36 |       .onChanged { value in
 37 |         dragOffsetY = value.translation.height
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:36:8: error: 'onChanged' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    |        |- error: 'onChanged' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
 37 |         dragOffsetY = value.translation.height
 38 |       }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:37:9: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
 37 |         dragOffsetY = value.translation.height
    |         |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 38 |       }
 39 |       .onEnded { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:39:8: error: 'onEnded' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
 37 |         dragOffsetY = value.translation.height
 38 |       }
 39 |       .onEnded { value in
    |        |- error: 'onEnded' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
 40 |         guard !fitInteractiveDismissDisabled else {
 41 |           withAnimation(presentAnimation.value) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:41:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 39 |       .onEnded { value in
 40 |         guard !fitInteractiveDismissDisabled else {
 41 |           withAnimation(presentAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 42 |             dragOffsetY = 0
 43 |             offsetY = 0
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:42:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 40 |         guard !fitInteractiveDismissDisabled else {
 41 |           withAnimation(presentAnimation.value) {
 42 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 43 |             offsetY = 0
 44 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:43:13: error: setter for 'offsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 41 |           withAnimation(presentAnimation.value) {
 42 |             dragOffsetY = 0
 43 |             offsetY = 0
    |             |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 44 |           }
 45 |           return
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:49:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 47 |
 48 |         if offsetY > (contentHeight * dismissThreshold) {
 49 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 50 |             isPresented.toggle()
 51 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:50:13: error: cannot pass as inout because setter for 'isPresented' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 48 |         if offsetY > (contentHeight * dismissThreshold) {
 49 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 50 |             isPresented.toggle()
    |             |- error: cannot pass as inout because setter for 'isPresented' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 51 |           }
 52 |           DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:53:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 51 |           }
 52 |           DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
 53 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 54 |           }
 55 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:56:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 54 |           }
 55 |         } else {
 56 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 57 |             dragOffsetY = 0
 58 |             offsetY = 0
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:57:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 55 |         } else {
 56 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 57 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 58 |             offsetY = 0
 59 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:58:13: error: setter for 'offsetY' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
    :
 56 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 57 |             dragOffsetY = 0
 58 |             offsetY = 0
    |             |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 59 |           }
 60 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:128:26: error: cannot find 'UIScreen' in scope
126 |           }
127 |           .onPreferenceChange(OffsetYKey.self) { offsetY in
128 |             let height = UIScreen.main.bounds.height - min(availableContentHeight, contentHeight) - topContentInset
    |                          `- error: cannot find 'UIScreen' in scope
129 |             self.offsetY = offsetY - height
130 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:149:7: error: cannot find 'UIApplication' in scope
147 |   private func onChangeOfIsPresented() {
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |       `- error: cannot find 'UIApplication' in scope
150 |       onDismiss?()
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:149:49: error: cannot find 'UIResponder' in scope
147 |   private func onChangeOfIsPresented() {
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                 `- error: cannot find 'UIResponder' in scope
150 |       onDismiss?()
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:149:88: error: 'nil' requires a contextual type
147 |   private func onChangeOfIsPresented() {
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                        `- error: 'nil' requires a contextual type
150 |       onDismiss?()
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:149:99: error: 'nil' requires a contextual type
147 |   private func onChangeOfIsPresented() {
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
150 |       onDismiss?()
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:149:109: error: 'nil' requires a contextual type
147 |   private func onChangeOfIsPresented() {
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                                             `- error: 'nil' requires a contextual type
150 |       onDismiss?()
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:152:5: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
145 |   }
146 |
147 |   private func onChangeOfIsPresented() {
    |                `- note: add @available attribute to enclosing instance method
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
150 |       onDismiss?()
151 |     }
152 |     withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
    |     |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
153 |       internalPresented = isPresented
154 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:153:7: error: setter for 'internalPresented' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
145 |   }
146 |
147 |   private func onChangeOfIsPresented() {
    |                `- note: add @available attribute to enclosing instance method
148 |     if !isPresented {
149 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    :
151 |     }
152 |     withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
153 |       internalPresented = isPresented
    |       |- error: setter for 'internalPresented' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
154 |     }
155 |   }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling FitHeightSheet InteractiveDismissDisabled.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:10:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 8 | import SwiftUI
 9 |
10 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
11 |   var fitInteractiveDismissDisabled: Bool {
12 |     get { self[InteractiveDismissDisabledKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:28:80: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension View {
   | `- note: add @available attribute to enclosing extension
24 |   /// Conditionally prevents interactive dismissal of fit height.
25 |   /// - Parameter isDisabled: A Boolean value that indicates whether to prevent nonprogrammatic dismissal of the containing view hierarchy when presented in a fitHeightSheet.
26 |   ///
27 |   /// Users can dismiss fit height sheet using built-in gestures, just like native SwiftUI sheet. In particular, a user can dismiss a fit height sheet by dragging it down, or by clicking or tapping outside of the presented view. Use the fitInteractiveDismissDisabled(_:) modifier to conditionally prevent this kind of dismissal. You typically do this to prevent the user from dismissing a presentation before providing needed data or completing a required action.
28 |   public func fitInteractiveDismissDisabled(_ isDisabled: Bool = true) -> some View {
   |               |                                                                `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
29 |     environment(\.fitInteractiveDismissDisabled, isDisabled)
30 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:23:11: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
24 |   /// Conditionally prevents interactive dismissal of fit height.
25 |   /// - Parameter isDisabled: A Boolean value that indicates whether to prevent nonprogrammatic dismissal of the containing view hierarchy when presented in a fitHeightSheet.
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:29:5: error: 'environment' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension View {
   | `- note: add @available attribute to enclosing extension
24 |   /// Conditionally prevents interactive dismissal of fit height.
25 |   /// - Parameter isDisabled: A Boolean value that indicates whether to prevent nonprogrammatic dismissal of the containing view hierarchy when presented in a fitHeightSheet.
26 |   ///
27 |   /// Users can dismiss fit height sheet using built-in gestures, just like native SwiftUI sheet. In particular, a user can dismiss a fit height sheet by dragging it down, or by clicking or tapping outside of the presented view. Use the fitInteractiveDismissDisabled(_:) modifier to conditionally prevent this kind of dismissal. You typically do this to prevent the user from dismissing a presentation before providing needed data or completing a required action.
28 |   public func fitInteractiveDismissDisabled(_ isDisabled: Bool = true) -> some View {
   |               `- note: add @available attribute to enclosing instance method
29 |     environment(\.fitInteractiveDismissDisabled, isDisabled)
   |     |- error: 'environment' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
30 |   }
31 | }
[6/11] Compiling FitHeightSheet FitHeightSheetWithItemModifire.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:12:4: error: 'Binding' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:14:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:15:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
 15 |   @State private var offsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 16 |   @State private var contentHeight = CGFloat.zero
 17 |   @State private var contentHeightChanged = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:16:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 17 |   @State private var contentHeightChanged = false
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:17:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
 17 |   @State private var contentHeightChanged = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 18 |
 19 |   @State private  var isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:19:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 17 |   @State private var contentHeightChanged = false
 18 |
 19 |   @State private  var isPresented = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 20 |
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:21:4: error: 'Environment' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 19 |   @State private  var isPresented = false
 20 |
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
    |    `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |
 23 |   private let backdropColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:23:30: error: 'Color' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
 22 |
 23 |   private let backdropColor: Color
    |                              `- error: 'Color' is only available in macOS 10.15 or newer
 24 |   private let backdropOpacity: CGFloat
 25 |   private let presentAnimation: AnimationConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:37:29: error: 'Gesture' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               |             `- error: 'Gesture' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:68:11: error: 'Binding' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 65 |   }
 66 |
 67 |   init(
    |   `- note: add @available attribute to enclosing initializer
 68 |     item: Binding<Item?>,
    |           `- error: 'Binding' is only available in macOS 10.15 or newer
 69 |     backdropStyle: BackdropStyle,
 70 |     presentAnimation: AnimationConfiguration,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:75:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 65 |   }
 66 |
 67 |   init(
    |   `- note: add @available attribute to enclosing initializer
 68 |     item: Binding<Item?>,
 69 |     backdropStyle: BackdropStyle,
    :
 73 |     dismissThreshold: CGFloat,
 74 |     onDismiss: (() -> Void)?,
 75 |     @ViewBuilder _ body: @escaping (Item) -> Body
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 76 |   ) {
 77 |     self._item = item
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:88:39: error: 'View' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 86 |   }
 87 |
 88 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 89 |     ZStack {
 90 |       content
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:11:45: error: 'View' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        |                                    `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:42:8: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
 40 |         dragOffsetY = value.translation.height
 41 |       }
 42 |       .onEnded { value in
    |        |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |        `- note: add 'if #available' version check
 43 |         guard !fitInteractiveDismissDisabled else {
 44 |           withAnimation(presentAnimation.value) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:38:5: error: 'DragGesture' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
    |     |- error: 'DragGesture' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
 39 |       .onChanged { value in
 40 |         dragOffsetY = value.translation.height
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:38:5: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
    |     |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
    |     `- note: add 'if #available' version check
 39 |       .onChanged { value in
 40 |         dragOffsetY = value.translation.height
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:39:8: error: 'onChanged' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    |        |- error: 'onChanged' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
 40 |         dragOffsetY = value.translation.height
 41 |       }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:40:9: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
 40 |         dragOffsetY = value.translation.height
    |         |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 41 |       }
 42 |       .onEnded { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:42:8: error: 'onEnded' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
 40 |         dragOffsetY = value.translation.height
 41 |       }
 42 |       .onEnded { value in
    |        |- error: 'onEnded' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
 43 |         guard !fitInteractiveDismissDisabled else {
 44 |           withAnimation(presentAnimation.value) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:44:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 42 |       .onEnded { value in
 43 |         guard !fitInteractiveDismissDisabled else {
 44 |           withAnimation(presentAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 45 |             dragOffsetY = 0
 46 |             offsetY = 0
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:45:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 43 |         guard !fitInteractiveDismissDisabled else {
 44 |           withAnimation(presentAnimation.value) {
 45 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 46 |             offsetY = 0
 47 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:46:13: error: setter for 'offsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 44 |           withAnimation(presentAnimation.value) {
 45 |             dragOffsetY = 0
 46 |             offsetY = 0
    |             |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 47 |           }
 48 |           return
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:52:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 50 |
 51 |         if offsetY > (contentHeight * dismissThreshold) {
 52 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 53 |             item = nil
 54 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:53:13: error: setter for 'item' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 51 |         if offsetY > (contentHeight * dismissThreshold) {
 52 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 53 |             item = nil
    |             |- error: setter for 'item' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 54 |           }
 55 |           DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:56:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 54 |           }
 55 |           DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
 56 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 57 |           }
 58 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:59:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 57 |           }
 58 |         } else {
 59 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 60 |             dragOffsetY = 0
 61 |             offsetY = 0
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:60:13: error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 58 |         } else {
 59 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 60 |             dragOffsetY = 0
    |             |- error: setter for 'dragOffsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 61 |             offsetY = 0
 62 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:61:13: error: setter for 'offsetY' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
    :
 59 |           withAnimation(isPresented ? presentAnimation.value : dismissAnimation.value) {
 60 |             dragOffsetY = 0
 61 |             offsetY = 0
    |             |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 62 |           }
 63 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:137:24: error: cannot find 'UIScreen' in scope
135 |         }
136 |         .onPreferenceChange(OffsetYKey.self) { offsetY in
137 |           let height = UIScreen.main.bounds.height - min(availableContentHeight, contentHeight) - topContentInset
    |                        `- error: cannot find 'UIScreen' in scope
138 |           self.offsetY = offsetY - height
139 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:164:7: error: cannot find 'UIApplication' in scope
162 |   private func onChangeOfIsPresented() {
163 |     if !isPresented {
164 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |       `- error: cannot find 'UIApplication' in scope
165 |       onDismiss?()
166 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:164:49: error: cannot find 'UIResponder' in scope
162 |   private func onChangeOfIsPresented() {
163 |     if !isPresented {
164 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                 `- error: cannot find 'UIResponder' in scope
165 |       onDismiss?()
166 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:164:88: error: 'nil' requires a contextual type
162 |   private func onChangeOfIsPresented() {
163 |     if !isPresented {
164 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                        `- error: 'nil' requires a contextual type
165 |       onDismiss?()
166 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:164:99: error: 'nil' requires a contextual type
162 |   private func onChangeOfIsPresented() {
163 |     if !isPresented {
164 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
165 |       onDismiss?()
166 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:164:109: error: 'nil' requires a contextual type
162 |   private func onChangeOfIsPresented() {
163 |     if !isPresented {
164 |       UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    |                                                                                                             `- error: 'nil' requires a contextual type
165 |       onDismiss?()
166 |     }
[7/11] Emitting module FitHeightSheet
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:12:18: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
   |                  `- error: 'Animation' is only available in macOS 10.15 or newer
13 |   var delay: TimeInterval = 0
14 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:15:14: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
13 |   var delay: TimeInterval = 0
14 |
15 |   var value: Animation {
   |       |      `- error: 'Animation' is only available in macOS 10.15 or newer
   |       `- note: add @available attribute to enclosing property
16 |     animation.delay(delay)
17 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:23:26: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
13 |   var delay: TimeInterval = 0
   :
21 |   ///   - animation: The base SwiftUI `Animation` to be used.
22 |   ///   - delay: The delay, in seconds, before the animation starts. The default value is 0.
23 |   public init(animation: Animation, delay: TimeInterval = 0) {
   |          |               `- error: 'Animation' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
24 |     self.animation = animation
25 |     self.delay = delay
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:12:14: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
   |              `- error: 'Color' is only available in macOS 10.15 or newer
13 |   let opacity: CGFloat
14 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:19:22: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
13 |   let opacity: CGFloat
   :
17 |   ///   - color: The color of the backdrop.
18 |   ///   - opacity: The opacity level of the backdrop.
19 |   public init(color: Color, opacity: CGFloat) {
   |          |           `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
20 |     self.color = color
21 |     self.opacity = opacity
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:27:53: error: 'black' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
13 |   let opacity: CGFloat
   :
25 |   ///
26 |   /// By default, fitHeightSheet uses this backdrop style.
27 |   public static let `default`: Self = .init(color: .black, opacity: 0.5)
   |                     |                               `- error: 'black' is only available in macOS 10.15 or newer
   |                     `- note: add @available attribute to enclosing static property
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/EnvironmentValues+Dismiss.swift:11:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - Dismiss
11 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |   /**
13 |    An action that dismisses the current `fitHeightSheet` presentation.
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:21:36: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               |                    `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:22:18: error: 'Binding' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
   |                  `- error: 'Binding' is only available in macOS 10.15 or newer
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:29:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
27 |     dismissThreshold: CGFloat = 0.5,
28 |     onDismiss: (() -> Void)? = nil,
29 |     @ViewBuilder content: @escaping () -> Body
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 |   ) -> some View {
31 |     modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:30:13: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
28 |     onDismiss: (() -> Void)? = nil,
29 |     @ViewBuilder content: @escaping () -> Body
30 |   ) -> some View {
   |             `- error: 'View' is only available in macOS 10.15 or newer
31 |     modifier(
32 |       FitHeightSheetModifire(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:24:66: error: 'smooth' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
   |                                                                  `- error: 'smooth' is only available in macOS 10.15 or newer
25 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
26 |     topContentInset: CGFloat = 40,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:25:66: error: 'bouncy' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
25 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
   |                                                                  `- error: 'bouncy' is only available in macOS 10.15 or newer
26 |     topContentInset: CGFloat = 40,
27 |     dismissThreshold: CGFloat = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:57:36: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               |                    `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:58:11: error: 'Binding' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
   |           `- error: 'Binding' is only available in macOS 10.15 or newer
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:65:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
63 |     dismissThreshold: CGFloat = 0.5,
64 |     onDismiss: (() -> Void)? = nil,
65 |     @ViewBuilder content: @escaping (Item) -> Body
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 |   ) -> some View {
67 |     modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:66:13: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
64 |     onDismiss: (() -> Void)? = nil,
65 |     @ViewBuilder content: @escaping (Item) -> Body
66 |   ) -> some View {
   |             `- error: 'View' is only available in macOS 10.15 or newer
67 |     modifier(
68 |       FitHeightSheetWithItemModifire(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:60:66: error: 'smooth' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
   |                                                                  `- error: 'smooth' is only available in macOS 10.15 or newer
61 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
62 |     topContentInset: CGFloat = 40,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:61:66: error: 'bouncy' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
61 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
   |                                                                  `- error: 'bouncy' is only available in macOS 10.15 or newer
62 |     topContentInset: CGFloat = 40,
63 |     dismissThreshold: CGFloat = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:4:11: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:11:4: error: 'Binding' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:12:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:13:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:14:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 15 |   @State private var contentHeight = CGFloat.zero
 16 |   @State private var contentHeightChanged = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:15:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
 13 |   @State private var dragOffsetY = CGFloat.zero
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 16 |   @State private var contentHeightChanged = false
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:16:4: error: 'State' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 14 |   @State private var offsetY = CGFloat.zero
 15 |   @State private var contentHeight = CGFloat.zero
 16 |   @State private var contentHeightChanged = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 17 |
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:18:4: error: 'Environment' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 16 |   @State private var contentHeightChanged = false
 17 |
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
    |    `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |
 20 |   private let backdropColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:20:30: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 18 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
 19 |
 20 |   private let backdropColor: Color
    |                              `- error: 'Color' is only available in macOS 10.15 or newer
 21 |   private let backdropOpacity: CGFloat
 22 |   private let presentAnimation: AnimationConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:34:29: error: 'Gesture' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 32 |   }
 33 |
 34 |   private var gesture: some Gesture {
    |               |             `- error: 'Gesture' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing property
 35 |     DragGesture(minimumDistance: 5)
 36 |       .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:65:18: error: 'Binding' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 62 |   }
 63 |
 64 |   init(
    |   `- note: add @available attribute to enclosing initializer
 65 |     isPresented: Binding<Bool>,
    |                  `- error: 'Binding' is only available in macOS 10.15 or newer
 66 |     backdropStyle: BackdropStyle,
 67 |     presentAnimation: AnimationConfiguration,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:72:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 62 |   }
 63 |
 64 |   init(
    |   `- note: add @available attribute to enclosing initializer
 65 |     isPresented: Binding<Bool>,
 66 |     backdropStyle: BackdropStyle,
    :
 70 |     dismissThreshold: CGFloat,
 71 |     onDismiss: (() -> Void)?,
 72 |     @ViewBuilder _ body: @escaping () -> Body
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 73 |   ) {
 74 |     self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:85:39: error: 'View' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
    :
 83 |   }
 84 |
 85 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 86 |     ZStack {
 87 |       content
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetModifire.swift:10:37: error: 'View' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | struct FitHeightSheetModifire<Body: View>: ViewModifier {
    |        |                            `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 11 |   @Binding var isPresented: Bool
 12 |   @State private var internalPresented: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:12:4: error: 'Binding' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:14:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:15:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
 15 |   @State private var offsetY = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 16 |   @State private var contentHeight = CGFloat.zero
 17 |   @State private var contentHeightChanged = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:16:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
 14 |   @State private var dragOffsetY = CGFloat.zero
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 17 |   @State private var contentHeightChanged = false
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:17:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 15 |   @State private var offsetY = CGFloat.zero
 16 |   @State private var contentHeight = CGFloat.zero
 17 |   @State private var contentHeightChanged = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 18 |
 19 |   @State private  var isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:19:4: error: 'State' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 17 |   @State private var contentHeightChanged = false
 18 |
 19 |   @State private  var isPresented = false
    |    `- error: 'State' is only available in macOS 10.15 or newer
 20 |
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:21:4: error: 'Environment' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 19 |   @State private  var isPresented = false
 20 |
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
    |    `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |
 23 |   private let backdropColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:23:30: error: 'Color' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 21 |   @Environment(\.fitInteractiveDismissDisabled) private var fitInteractiveDismissDisabled
 22 |
 23 |   private let backdropColor: Color
    |                              `- error: 'Color' is only available in macOS 10.15 or newer
 24 |   private let backdropOpacity: CGFloat
 25 |   private let presentAnimation: AnimationConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:37:29: error: 'Gesture' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 35 |   }
 36 |
 37 |   private var gesture: some Gesture {
    |               |             `- error: 'Gesture' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing property
 38 |     DragGesture(minimumDistance: 5)
 39 |       .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:68:11: error: 'Binding' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 65 |   }
 66 |
 67 |   init(
    |   `- note: add @available attribute to enclosing initializer
 68 |     item: Binding<Item?>,
    |           `- error: 'Binding' is only available in macOS 10.15 or newer
 69 |     backdropStyle: BackdropStyle,
 70 |     presentAnimation: AnimationConfiguration,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:75:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 65 |   }
 66 |
 67 |   init(
    |   `- note: add @available attribute to enclosing initializer
 68 |     item: Binding<Item?>,
 69 |     backdropStyle: BackdropStyle,
    :
 73 |     dismissThreshold: CGFloat,
 74 |     onDismiss: (() -> Void)?,
 75 |     @ViewBuilder _ body: @escaping (Item) -> Body
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 76 |   ) {
 77 |     self._item = item
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:88:39: error: 'View' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
    :
 86 |   }
 87 |
 88 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 89 |     ZStack {
 90 |       content
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheetWithItemModifire.swift:11:45: error: 'View' is only available in macOS 10.15 or newer
  9 | import Combine
 10 |
 11 | struct FitHeightSheetWithItemModifire<Body: View, Item>: ViewModifier {
    |        |                                    `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 12 |   @Binding var item: Item?
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:10:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 8 | import SwiftUI
 9 |
10 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
11 |   var fitInteractiveDismissDisabled: Bool {
12 |     get { self[InteractiveDismissDisabledKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:28:80: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension View {
   | `- note: add @available attribute to enclosing extension
24 |   /// Conditionally prevents interactive dismissal of fit height.
25 |   /// - Parameter isDisabled: A Boolean value that indicates whether to prevent nonprogrammatic dismissal of the containing view hierarchy when presented in a fitHeightSheet.
26 |   ///
27 |   /// Users can dismiss fit height sheet using built-in gestures, just like native SwiftUI sheet. In particular, a user can dismiss a fit height sheet by dragging it down, or by clicking or tapping outside of the presented view. Use the fitInteractiveDismissDisabled(_:) modifier to conditionally prevent this kind of dismissal. You typically do this to prevent the user from dismissing a presentation before providing needed data or completing a required action.
28 |   public func fitInteractiveDismissDisabled(_ isDisabled: Bool = true) -> some View {
   |               |                                                                `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
29 |     environment(\.fitInteractiveDismissDisabled, isDisabled)
30 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/InteractiveDismissDisabled.swift:23:11: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
24 |   /// Conditionally prevents interactive dismissal of fit height.
25 |   /// - Parameter isDisabled: A Boolean value that indicates whether to prevent nonprogrammatic dismissal of the containing view hierarchy when presented in a fitHeightSheet.
[8/11] Compiling FitHeightSheet AnimationConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:12:18: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
   |                  `- error: 'Animation' is only available in macOS 10.15 or newer
13 |   var delay: TimeInterval = 0
14 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:15:14: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
13 |   var delay: TimeInterval = 0
14 |
15 |   var value: Animation {
   |       |      `- error: 'Animation' is only available in macOS 10.15 or newer
   |       `- note: add @available attribute to enclosing property
16 |     animation.delay(delay)
17 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:23:26: error: 'Animation' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
13 |   var delay: TimeInterval = 0
   :
21 |   ///   - animation: The base SwiftUI `Animation` to be used.
22 |   ///   - delay: The delay, in seconds, before the animation starts. The default value is 0.
23 |   public init(animation: Animation, delay: TimeInterval = 0) {
   |          |               `- error: 'Animation' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
24 |     self.animation = animation
25 |     self.delay = delay
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/AnimationConfiguration.swift:16:15: error: 'delay' is only available in macOS 10.15 or newer
 9 |
10 | /// `AnimationConfiguration` is a struct that encapsulates an animation and its associated delay. This configuration can be used to create animations with specified delays, providing greater control over the timing of animations in your application.
11 | public struct AnimationConfiguration {
   |               `- note: add @available attribute to enclosing struct
12 |   let animation: Animation
13 |   var delay: TimeInterval = 0
14 |
15 |   var value: Animation {
   |       `- note: add @available attribute to enclosing property
16 |     animation.delay(delay)
   |               |- error: 'delay' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
17 |   }
18 |
[9/11] Compiling FitHeightSheet FitHeightSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:21:36: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               |                    `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:22:18: error: 'Binding' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
   |                  `- error: 'Binding' is only available in macOS 10.15 or newer
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:29:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
27 |     dismissThreshold: CGFloat = 0.5,
28 |     onDismiss: (() -> Void)? = nil,
29 |     @ViewBuilder content: @escaping () -> Body
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 |   ) -> some View {
31 |     modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:30:13: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
28 |     onDismiss: (() -> Void)? = nil,
29 |     @ViewBuilder content: @escaping () -> Body
30 |   ) -> some View {
   |             `- error: 'View' is only available in macOS 10.15 or newer
31 |     modifier(
32 |       FitHeightSheetModifire(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:24:66: error: 'smooth' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
   |                                                                  `- error: 'smooth' is only available in macOS 10.15 or newer
25 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
26 |     topContentInset: CGFloat = 40,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:25:66: error: 'bouncy' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
24 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
25 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
   |                                                                  `- error: 'bouncy' is only available in macOS 10.15 or newer
26 |     topContentInset: CGFloat = 40,
27 |     dismissThreshold: CGFloat = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:57:36: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               |                    `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:58:11: error: 'Binding' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
   |           `- error: 'Binding' is only available in macOS 10.15 or newer
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:65:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
63 |     dismissThreshold: CGFloat = 0.5,
64 |     onDismiss: (() -> Void)? = nil,
65 |     @ViewBuilder content: @escaping (Item) -> Body
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 |   ) -> some View {
67 |     modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:66:13: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
64 |     onDismiss: (() -> Void)? = nil,
65 |     @ViewBuilder content: @escaping (Item) -> Body
66 |   ) -> some View {
   |             `- error: 'View' is only available in macOS 10.15 or newer
67 |     modifier(
68 |       FitHeightSheetWithItemModifire(
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:60:66: error: 'smooth' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
   |                                                                  `- error: 'smooth' is only available in macOS 10.15 or newer
61 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
62 |     topContentInset: CGFloat = 40,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:61:66: error: 'bouncy' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
60 |     presentAnimation: AnimationConfiguration = .init(animation: .smooth),
61 |     dismissAnimation: AnimationConfiguration = .init(animation: .bouncy),
   |                                                                  `- error: 'bouncy' is only available in macOS 10.15 or newer
62 |     topContentInset: CGFloat = 40,
63 |     dismissThreshold: CGFloat = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:4:11: error: 'View' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:31:5: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
29 |     @ViewBuilder content: @escaping () -> Body
30 |   ) -> some View {
31 |     modifier(
   |     |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |     `- note: add 'if #available' version check
32 |       FitHeightSheetModifire(
33 |         isPresented: isPresented,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:31:5: error: 'modifier' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
19 |    The fitHeightSheet function provides a flexible way to present a sheet with a specific height in a SwiftUI application. It allows for detailed customization of the presentation and dismissal animations, backdrop style, and content inset, as well as providing an optional closure for handling the dismissal event.
20 |    */
21 |   public func fitHeightSheet<Body: View>(
   |               `- note: add @available attribute to enclosing instance method
22 |     isPresented: Binding<Bool>,
23 |     backdropStyle: BackdropStyle = .default,
   :
29 |     @ViewBuilder content: @escaping () -> Body
30 |   ) -> some View {
31 |     modifier(
   |     |- error: 'modifier' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
32 |       FitHeightSheetModifire(
33 |         isPresented: isPresented,
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:67:5: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
65 |     @ViewBuilder content: @escaping (Item) -> Body
66 |   ) -> some View {
67 |     modifier(
   |     |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |     `- note: add 'if #available' version check
68 |       FitHeightSheetWithItemModifire(
69 |         item: item.animation(item.wrappedValue != nil ? presentAnimation.value : dismissAnimation.value),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:67:5: error: 'modifier' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
65 |     @ViewBuilder content: @escaping (Item) -> Body
66 |   ) -> some View {
67 |     modifier(
   |     |- error: 'modifier' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
68 |       FitHeightSheetWithItemModifire(
69 |         item: item.animation(item.wrappedValue != nil ? presentAnimation.value : dismissAnimation.value),
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/FitHeightSheet.swift:69:20: error: 'animation' is only available in macOS 10.15 or newer
 2 | import Combine
 3 |
 4 | extension View {
   | `- note: add @available attribute to enclosing extension
 5 |   /**
 6 |    The `fitHeightSheet` function is a SwiftUI view modifier that presents a custom sheet with specific height constraints. It provides various customization options including animations, backdrop style, and dismissal behavior.
   :
55 |    - Returns: A modified view with the fit height sheet behavior applied.
56 |    */
57 |   public func fitHeightSheet<Body: View, Item>(
   |               `- note: add @available attribute to enclosing instance method
58 |     item: Binding<Item?>,
59 |     backdropStyle: BackdropStyle = .default,
   :
67 |     modifier(
68 |       FitHeightSheetWithItemModifire(
69 |         item: item.animation(item.wrappedValue != nil ? presentAnimation.value : dismissAnimation.value),
   |                    |- error: 'animation' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
70 |         backdropStyle: backdropStyle,
71 |         presentAnimation: presentAnimation,
[10/11] Compiling FitHeightSheet EnvironmentValues+Dismiss.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/EnvironmentValues+Dismiss.swift:11:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - Dismiss
11 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |   /**
13 |    An action that dismisses the current `fitHeightSheet` presentation.
[11/11] Compiling FitHeightSheet BackdropStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:12:14: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
   |              `- error: 'Color' is only available in macOS 10.15 or newer
13 |   let opacity: CGFloat
14 |
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:19:22: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
13 |   let opacity: CGFloat
   :
17 |   ///   - color: The color of the backdrop.
18 |   ///   - opacity: The opacity level of the backdrop.
19 |   public init(color: Color, opacity: CGFloat) {
   |          |           `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
20 |     self.color = color
21 |     self.opacity = opacity
/Users/admin/builder/spi-builder-workspace/Sources/FitHeightSheet/BackdropStyle.swift:27:53: error: 'black' is only available in macOS 10.15 or newer
 9 |
10 | /// `BackdropStyle` is a struct designed to define the style of a backdrop. It encapsulates both the color and opacity of the backdrop, allowing for easy customization and reuse of backdrop styles in your application.
11 | public struct BackdropStyle {
   |               `- note: add @available attribute to enclosing struct
12 |   let color: Color
13 |   let opacity: CGFloat
   :
25 |   ///
26 |   /// By default, fitHeightSheet uses this backdrop style.
27 |   public static let `default`: Self = .init(color: .black, opacity: 0.5)
   |                     |                               `- error: 'black' is only available in macOS 10.15 or newer
   |                     `- note: add @available attribute to enclosing static property
28 | }
29 |
BUILD FAILURE 6.2 macosSpm