Build Information
Failed to build DrawerSideBar, reference 1.0.0 (d688d0), with Swift 6.3 for macOS (SPM) on 19 Apr 2026 14:44:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shubhamKachhiya/DrawerSideBar.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shubhamKachhiya/DrawerSideBar
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at d688d08 Initial release
Cloned https://github.com/shubhamKachhiya/DrawerSideBar.git
Revision (git rev-parse @):
d688d085034023e7bbb02ae10f411804d90ca70d
SUCCESS checkout https://github.com/shubhamKachhiya/DrawerSideBar.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "drawersidebar",
"name": "DrawerSideBar",
"url": "https://github.com/shubhamKachhiya/DrawerSideBar.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DrawerSideBar",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/shubhamKachhiya/DrawerSideBar.git
[1/37] Fetching drawersidebar
Fetched https://github.com/shubhamKachhiya/DrawerSideBar.git from cache (0.66s)
Creating working copy for https://github.com/shubhamKachhiya/DrawerSideBar.git
Working copy of https://github.com/shubhamKachhiya/DrawerSideBar.git resolved at 1.0.0 (d688d08)
warning: '.resolve-product-dependencies': dependency 'drawersidebar' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/shubhamKachhiya/DrawerSideBar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module DrawerSideBar
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:14:26: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
14 | let sideBarContent: (EdgeInsets) -> SideBar
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
15 | let mainContent: (EdgeInsets) -> Main
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:15:23: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
14 | let sideBarContent: (EdgeInsets) -> SideBar
15 | let mainContent: (EdgeInsets) -> Main
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
16 |
17 | @Binding var isSideBarOpened: Bool
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:17:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
15 | let mainContent: (EdgeInsets) -> Main
16 |
17 | @Binding var isSideBarOpened: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:20:26: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:23:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
25 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:23:42: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
25 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:24:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | ) {
26 | self._isSideBarOpened = isSideBarOpened
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:24:39: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
25 | ) {
26 | self._isSideBarOpened = isSideBarOpened
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
33 | var sideBarWidth: CGFloat { UIScreen.main.bounds.size.width * sideBarWidthRatio }
34 |
35 | @State private var offset: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @GestureState private var gestureOffset: CGFloat = 0
37 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:36:6: error: 'GestureState' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
34 |
35 | @State private var offset: CGFloat = 0
36 | @GestureState private var gestureOffset: CGFloat = 0
| `- error: 'GestureState' is only available in macOS 10.15 or newer
37 |
38 | var totalOffset: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:42:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:107:23: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
105 | }
106 |
107 | func onEnd(value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
108 | let translation = value.translation.width
109 | if translation > 0 && translation > (sideBarWidth * 0.6) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:11:46: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:11:58: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
[4/5] Compiling DrawerSideBar DrawerSideBar.swift
[5/5] Compiling DrawerSideBar SideBarNavigationView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:14:26: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
14 | let sideBarContent: (EdgeInsets) -> SideBar
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
15 | let mainContent: (EdgeInsets) -> Main
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:15:23: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
14 | let sideBarContent: (EdgeInsets) -> SideBar
15 | let mainContent: (EdgeInsets) -> Main
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
16 |
17 | @Binding var isSideBarOpened: Bool
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:17:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
15 | let mainContent: (EdgeInsets) -> Main
16 |
17 | @Binding var isSideBarOpened: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:20:26: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:23:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
25 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:23:42: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
25 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:24:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | ) {
26 | self._isSideBarOpened = isSideBarOpened
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:24:39: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
17 | @Binding var isSideBarOpened: Bool
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | isSideBarOpened: Binding<Bool> = .constant(false),
21 | sideBarWidthRatio: CGFloat = 0.7,
22 | mainViewScaleSize: CGFloat = 0.8,
23 | @ViewBuilder sideBar: @escaping (EdgeInsets) -> SideBar,
24 | @ViewBuilder main: @escaping (EdgeInsets) -> Main
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
25 | ) {
26 | self._isSideBarOpened = isSideBarOpened
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
33 | var sideBarWidth: CGFloat { UIScreen.main.bounds.size.width * sideBarWidthRatio }
34 |
35 | @State private var offset: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @GestureState private var gestureOffset: CGFloat = 0
37 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:36:6: error: 'GestureState' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
34 |
35 | @State private var offset: CGFloat = 0
36 | @GestureState private var gestureOffset: CGFloat = 0
| `- error: 'GestureState' is only available in macOS 10.15 or newer
37 |
38 | var totalOffset: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:42:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:107:23: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
105 | }
106 |
107 | func onEnd(value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
108 | let translation = value.translation.width
109 | if translation > 0 && translation > (sideBarWidth * 0.6) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:11:46: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:11:58: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:33:33: error: cannot find 'UIScreen' in scope
31 | }
32 |
33 | var sideBarWidth: CGFloat { UIScreen.main.bounds.size.width * sideBarWidthRatio }
| `- error: cannot find 'UIScreen' in scope
34 |
35 | @State private var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:43:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | let safeArea = proxy.safeAreaInsets
45 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:43:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | let safeArea = proxy.safeAreaInsets
45 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:46:13: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | Color.blue
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:46:32: error: 'leading' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | Color.blue
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:46:41: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | Color.blue
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:47:17: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
47 | Color.blue
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 |
49 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:47:17: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
47 | Color.blue
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 |
49 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:47:23: error: 'blue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
47 | Color.blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 |
49 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:49:17: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
47 | Color.blue
48 |
49 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | sideBarContent(safeArea)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:52:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
50 | sideBarContent(safeArea)
51 | }
52 | .frame(width: sideBarWidth)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .offset(x: -sideBarWidth)
54 | .offset(x: totalOffset)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:53:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
51 | }
52 | .frame(width: sideBarWidth)
53 | .offset(x: -sideBarWidth)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .offset(x: totalOffset)
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:54:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
52 | .frame(width: sideBarWidth)
53 | .offset(x: -sideBarWidth)
54 | .offset(x: totalOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 |
56 | ZStack(alignment: .top) {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:56:17: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
54 | .offset(x: totalOffset)
55 |
56 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | mainContent(safeArea)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:56:36: error: 'top' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
54 | .offset(x: totalOffset)
55 |
56 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | mainContent(safeArea)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:59:21: error: 'HStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
57 | mainContent(safeArea)
58 |
59 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Button {
61 | withAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:60:25: error: 'Button' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
58 |
59 | HStack {
60 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | withAnimation {
62 | isSideBarOpened.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:61:29: error: 'withAnimation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
59 | HStack {
60 | Button {
61 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | isSideBarOpened.toggle()
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:62:33: error: cannot pass as inout because setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
60 | Button {
61 | withAnimation {
62 | isSideBarOpened.toggle()
| |- error: cannot pass as inout because setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:65:29: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
63 | }
64 | } label: {
65 | Image(systemName: "line.3.horizontal")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .resizable()
67 | .foregroundStyle(.black)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:65:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
63 | }
64 | } label: {
65 | Image(systemName: "line.3.horizontal")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
66 | .resizable()
67 | .foregroundStyle(.black)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:66:34: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
64 | } label: {
65 | Image(systemName: "line.3.horizontal")
66 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .foregroundStyle(.black)
68 | .frame(width: 25, height: 20)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:67:34: error: 'foregroundStyle' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
65 | Image(systemName: "line.3.horizontal")
66 | .resizable()
67 | .foregroundStyle(.black)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
68 | .frame(width: 25, height: 20)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:67:51: error: 'black' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
65 | Image(systemName: "line.3.horizontal")
66 | .resizable()
67 | .foregroundStyle(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .frame(width: 25, height: 20)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:68:34: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
66 | .resizable()
67 | .foregroundStyle(.black)
68 | .frame(width: 25, height: 20)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:70:25: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
68 | .frame(width: 25, height: 20)
69 | }
70 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }
72 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:70:25: error: 'Spacer' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
68 | .frame(width: 25, height: 20)
69 | }
70 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }
72 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:59:28: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
57 | mainContent(safeArea)
58 |
59 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Button {
61 | withAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:72:22: error: 'padding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
70 | Spacer()
71 | }
72 | .padding(.horizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .padding(.top, safeArea.top)
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:73:22: error: 'padding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
71 | }
72 | .padding(.horizontal)
73 | .padding(.top, safeArea.top)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:75:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
73 | .padding(.top, safeArea.top)
74 | }
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .shadow(
77 | color: .black.opacity(isSideBarOpened ? 1 : 0),
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:75:28: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
73 | .padding(.top, safeArea.top)
74 | }
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .shadow(
77 | color: .black.opacity(isSideBarOpened ? 1 : 0),
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:76:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
74 | }
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
76 | .shadow(
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | color: .black.opacity(isSideBarOpened ? 1 : 0),
78 | radius: 18, x: 8, y: 0
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:77:29: error: 'black' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
76 | .shadow(
77 | color: .black.opacity(isSideBarOpened ? 1 : 0),
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | radius: 18, x: 8, y: 0
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:77:35: error: 'opacity' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
75 | .clipShape(RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0))
76 | .shadow(
77 | color: .black.opacity(isSideBarOpened ? 1 : 0),
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | radius: 18, x: 8, y: 0
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:80:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
78 | radius: 18, x: 8, y: 0
79 | )
80 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:81:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
79 | )
80 | .overlay(
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
83 | )
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:82:26: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
80 | .overlay(
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:82:33: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
80 | .overlay(
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:82:39: error: 'white' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
80 | .overlay(
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:82:45: error: 'opacity' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
80 | .overlay(
81 | RoundedRectangle(cornerRadius: isSideBarOpened ? 20 : 0)
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:84:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
82 | .stroke(Color.white.opacity(isSideBarOpened ? 0.9 : 0), lineWidth: 2)
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .offset(x: totalOffset)
86 | .gesture(
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:85:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
83 | )
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
85 | .offset(x: totalOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | .gesture(
87 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:86:18: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
84 | .scaleEffect(isSideBarOpened ? mainViewScaleSize : 1.0, anchor: .leading)
85 | .offset(x: totalOffset)
86 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | DragGesture()
88 | .updating($gestureOffset) { value, out, _ in
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:87:21: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
85 | .offset(x: totalOffset)
86 | .gesture(
87 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | .updating($gestureOffset) { value, out, _ in
89 | if value.translation.width > 0 && isSideBarOpened {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:87:21: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
85 | .offset(x: totalOffset)
86 | .gesture(
87 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
88 | .updating($gestureOffset) { value, out, _ in
89 | if value.translation.width > 0 && isSideBarOpened {
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:88:26: error: 'updating(_:body:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
86 | .gesture(
87 | DragGesture()
88 | .updating($gestureOffset) { value, out, _ in
| |- error: 'updating(_:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | if value.translation.width > 0 && isSideBarOpened {
90 | out = value.translation.width * 0.1
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:95:26: error: 'onEnded' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
93 | }
94 | }
95 | .onEnded(onEnd(value:))
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | )
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:46:41: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
45 |
46 | ZStack(alignment: .leading) {
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | Color.blue
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:98:14: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
96 | )
97 | }
98 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
99 | }
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:100:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
98 | .ignoresSafeArea()
99 | }
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
102 | .onChange(of: isSideBarOpened) { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:100:21: error: 'smooth(duration:extraBounce:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
98 | .ignoresSafeArea()
99 | }
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
| |- error: 'smooth(duration:extraBounce:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
102 | .onChange(of: isSideBarOpened) { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:101:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
99 | }
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | .onChange(of: isSideBarOpened) { _, newValue in
103 | offset = newValue ? sideBarWidth : 0
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:101:21: error: 'smooth(duration:extraBounce:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
99 | }
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
| |- error: 'smooth(duration:extraBounce:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | .onChange(of: isSideBarOpened) { _, newValue in
103 | offset = newValue ? sideBarWidth : 0
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:102:10: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
100 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: offset)
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
102 | .onChange(of: isSideBarOpened) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
103 | offset = newValue ? sideBarWidth : 0
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:103:13: error: setter for 'offset' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
40 | }
41 |
42 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
43 | GeometryReader { proxy in
44 | let safeArea = proxy.safeAreaInsets
:
101 | .animation(.smooth(duration: 0.4, extraBounce: 0), value: gestureOffset)
102 | .onChange(of: isSideBarOpened) { _, newValue in
103 | offset = newValue ? sideBarWidth : 0
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | }
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:110:13: error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
105 | }
106 |
107 | func onEnd(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
108 | let translation = value.translation.width
109 | if translation > 0 && translation > (sideBarWidth * 0.6) {
110 | isSideBarOpened = true
| |- error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | } else if -translation > (sideBarWidth / 2) {
112 | isSideBarOpened = false
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:112:13: error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
105 | }
106 |
107 | func onEnd(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
108 | let translation = value.translation.width
109 | if translation > 0 && translation > (sideBarWidth * 0.6) {
110 | isSideBarOpened = true
111 | } else if -translation > (sideBarWidth / 2) {
112 | isSideBarOpened = false
| |- error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | } else {
114 | if offset == 0 || !isSideBarOpened { return }
/Users/admin/builder/spi-builder-workspace/Sources/DrawerSideBar/SideBarNavigationView.swift:115:13: error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct SideBarNavigationView<SideBar: View, Main: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | var sideBarWidthRatio: CGFloat
13 | var mainViewScaleSize: CGFloat
:
105 | }
106 |
107 | func onEnd(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
108 | let translation = value.translation.width
109 | if translation > 0 && translation > (sideBarWidth * 0.6) {
:
113 | } else {
114 | if offset == 0 || !isSideBarOpened { return }
115 | isSideBarOpened = true
| |- error: setter for 'isSideBarOpened' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | }
117 | }
BUILD FAILURE 6.3 macosSpm