Build Information
Failed to build PreviewResizable, reference main (ff59f6
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 22:14:26 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yannxou/PreviewResizable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yannxou/PreviewResizable
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ff59f64 Update README.md
Cloned https://github.com/yannxou/PreviewResizable.git
Revision (git rev-parse @):
ff59f6419111b1912f288d67da4867ed365419a9
SUCCESS checkout https://github.com/yannxou/PreviewResizable.git at main
========================================
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",
"dependencies": [
{
"identity": "previewresizable",
"name": "PreviewResizable",
"url": "https://github.com/yannxou/PreviewResizable.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PreviewResizable",
"dependencies": [
]
}
]
}
Fetching https://github.com/yannxou/PreviewResizable.git
[1/90] Fetching previewresizable
Fetched https://github.com/yannxou/PreviewResizable.git from cache (0.77s)
Creating working copy for https://github.com/yannxou/PreviewResizable.git
Working copy of https://github.com/yannxou/PreviewResizable.git resolved at main (ff59f64)
warning: '.resolve-product-dependencies': dependency 'previewresizable' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/yannxou/PreviewResizable.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Compiling PreviewResizable ChildSizeReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:4:6: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
5 | let content: () -> Content
6 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:3:33: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | fileprivate struct SizePreferenceKey: PreferenceKey {
23 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) { }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:7:9: error: 'ZStack' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | content()
9 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:9:18: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
9 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | GeometryReader { proxy in
11 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:10:21: error: 'GeometryReader' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
9 | .background(
10 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | Color.clear
12 | .preference(key: SizePreferenceKey.self, value: proxy.size)
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:11:25: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
9 | .background(
10 | GeometryReader { proxy in
11 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | .preference(key: SizePreferenceKey.self, value: proxy.size)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:11:31: error: 'clear' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
9 | .background(
10 | GeometryReader { proxy in
11 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | .preference(key: SizePreferenceKey.self, value: proxy.size)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:12:30: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
:
10 | GeometryReader { proxy in
11 | Color.clear
12 | .preference(key: SizePreferenceKey.self, value: proxy.size)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:16:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
:
14 | )
15 | }
16 | .onPreferenceChange(SizePreferenceKey.self) { size in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | self.size = size
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:17:13: error: setter for 'size' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
:
15 | }
16 | .onPreferenceChange(SizePreferenceKey.self) { size in
17 | self.size = size
| |- error: setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module PreviewResizable
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:4:6: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
5 | let content: () -> Content
6 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
7 | ZStack {
8 | content()
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:3:33: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSizeReader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | @Binding var size: CGSize
5 | let content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/ChildSizeReader.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | fileprivate struct SizePreferenceKey: PreferenceKey {
23 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) { }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:45: error: cannot find 'UIScreen' in scope
10 | struct PreviewResizableViewModifier: ViewModifier {
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: cannot find 'UIScreen' in scope
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:86: error: cannot find 'UIScreen' in scope
10 | struct PreviewResizableViewModifier: ViewModifier {
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: cannot find 'UIScreen' in scope
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
14 | @State private var contentSize: CGSize = .zero
15 | @State private var isRunning = false
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
15 | @State private var isRunning = false
16 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
15 | @State private var isRunning = false
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let handleSize: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:23:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
21 | }
22 |
23 | 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
24 | VStack(spacing: 0) {
25 | if isRunning {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:53:37: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:59:54: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
57 | }
58 |
59 | private func dragHandle(maxSize: CGSize) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | ZStack(alignment: .bottomTrailing) {
61 | Image(systemName: "arrow.up.backward.and.arrow.down.forward")
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:86:35: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
84 | }
85 |
86 | private var sizeDisplay: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | VStack(alignment: .trailing, spacing: 0) {
88 | Text("\(text(for: contentSize))")
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:103:61: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:130:43: error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
124 | fileprivate extension HorizontalAlignment {
| `- note: add @available attribute to enclosing extension
125 | private enum CrossHorizontalAlignment : AlignmentID {
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
:
128 | }
129 | }
130 | static let crossHorizontalAlignment = HorizontalAlignment(CrossHorizontalAlignment.self)
| | `- error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:122:33: error: 'Alignment' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
123 | }
124 | fileprivate extension HorizontalAlignment {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:122:93: error: 'bottom' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
| | `- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
123 | }
124 | fileprivate extension HorizontalAlignment {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:121:23: error: 'Alignment' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:126:40: error: 'ViewDimensions' is only available in macOS 10.15 or newer
123 | }
124 | fileprivate extension HorizontalAlignment {
125 | private enum CrossHorizontalAlignment : AlignmentID {
| `- note: add @available attribute to enclosing enum
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
| | `- error: 'ViewDimensions' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
127 | return d[.trailing]
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:124:23: error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
124 | fileprivate extension HorizontalAlignment {
| | `- error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
125 | private enum CrossHorizontalAlignment : AlignmentID {
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:142:37: error: 'View' is only available in macOS 10.15 or newer
133 | // MARK: - View extension
134 |
135 | public extension View {
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
:
140 | ///
141 | /// Double-clicking the resize button adapts the container view size to the content size.
142 | func previewResizable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | modifier(PreviewResizableViewModifier())
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:135:18: error: 'View' is only available in macOS 10.15 or newer
133 | // MARK: - View extension
134 |
135 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
[5/5] Compiling PreviewResizable PreviewResizableViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:45: error: cannot find 'UIScreen' in scope
10 | struct PreviewResizableViewModifier: ViewModifier {
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: cannot find 'UIScreen' in scope
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:86: error: cannot find 'UIScreen' in scope
10 | struct PreviewResizableViewModifier: ViewModifier {
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: cannot find 'UIScreen' in scope
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
14 | @State private var contentSize: CGSize = .zero
15 | @State private var isRunning = false
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
15 | @State private var isRunning = false
16 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
13 | @State private var isDragging = false
14 | @State private var contentSize: CGSize = .zero
15 | @State private var isRunning = false
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let handleSize: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:23:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
21 | }
22 |
23 | 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
24 | VStack(spacing: 0) {
25 | if isRunning {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:53:37: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:59:54: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
57 | }
58 |
59 | private func dragHandle(maxSize: CGSize) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | ZStack(alignment: .bottomTrailing) {
61 | Image(systemName: "arrow.up.backward.and.arrow.down.forward")
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:86:35: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
84 | }
85 |
86 | private var sizeDisplay: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | VStack(alignment: .trailing, spacing: 0) {
88 | Text("\(text(for: contentSize))")
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:103:61: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:130:43: error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
124 | fileprivate extension HorizontalAlignment {
| `- note: add @available attribute to enclosing extension
125 | private enum CrossHorizontalAlignment : AlignmentID {
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
:
128 | }
129 | }
130 | static let crossHorizontalAlignment = HorizontalAlignment(CrossHorizontalAlignment.self)
| | `- error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:122:33: error: 'Alignment' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
123 | }
124 | fileprivate extension HorizontalAlignment {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:122:93: error: 'bottom' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
| | `- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
123 | }
124 | fileprivate extension HorizontalAlignment {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:121:23: error: 'Alignment' is only available in macOS 10.15 or newer
119 | // MARK: - Alignment extensions
120 |
121 | fileprivate extension Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:126:40: error: 'ViewDimensions' is only available in macOS 10.15 or newer
123 | }
124 | fileprivate extension HorizontalAlignment {
125 | private enum CrossHorizontalAlignment : AlignmentID {
| `- note: add @available attribute to enclosing enum
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
| | `- error: 'ViewDimensions' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
127 | return d[.trailing]
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:124:23: error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
122 | static let crossAlignment = Alignment(horizontal: .crossHorizontalAlignment, vertical: .bottom)
123 | }
124 | fileprivate extension HorizontalAlignment {
| | `- error: 'HorizontalAlignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
125 | private enum CrossHorizontalAlignment : AlignmentID {
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:142:37: error: 'View' is only available in macOS 10.15 or newer
133 | // MARK: - View extension
134 |
135 | public extension View {
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
:
140 | ///
141 | /// Double-clicking the resize button adapts the container view size to the content size.
142 | func previewResizable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | modifier(PreviewResizableViewModifier())
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:135:18: error: 'View' is only available in macOS 10.15 or newer
133 | // MARK: - View extension
134 |
135 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:54:9: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
56 | .foregroundColor(isContentFitting ? .gray : .red)
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:55:14: error: 'strokeBorder(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
| |- error: 'strokeBorder(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
56 | .foregroundColor(isContentFitting ? .gray : .red)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:55:34: error: 'StrokeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .foregroundColor(isContentFitting ? .gray : .red)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:56:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
56 | .foregroundColor(isContentFitting ? .gray : .red)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:56:50: error: 'gray' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
56 | .foregroundColor(isContentFitting ? .gray : .red)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:56:58: error: 'red' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
51 | }
52 |
53 | private var rectangleHint: some View {
| `- note: add @available attribute to enclosing property
54 | Rectangle()
55 | .strokeBorder(style: StrokeStyle(lineWidth: 1, dash: [5]))
56 | .foregroundColor(isContentFitting ? .gray : .red)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:94:48: error: no exact matches in call to initializer
92 | Text("\(text(for: size))")
93 | .foregroundColor(isContentFitting ? .primary : .white)
94 | .background(isContentFitting ? Color(uiColor: .systemGroupedBackground) : .red)
| `- error: no exact matches in call to initializer
95 | }
96 | .font(.caption)
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 | public var hashValue: Int { get }
11 | }
12 | public init(_ resolved: Color.Resolved)
| `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 | public init(_ cgColor: CGColor)
| `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 | public init(_ name: String, bundle: Bundle? = nil)
| `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 | public init(_ resource: ColorResource)
| `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:94:64: error: reference to member 'systemGroupedBackground' cannot be resolved without a contextual type
92 | Text("\(text(for: size))")
93 | .foregroundColor(isContentFitting ? .primary : .white)
94 | .background(isContentFitting ? Color(uiColor: .systemGroupedBackground) : .red)
| `- error: reference to member 'systemGroupedBackground' cannot be resolved without a contextual type
95 | }
96 | .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:104:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | HStack(alignment: .center, spacing: 0) {
106 | ChildSizeReader(size: $contentSize) {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:104:28: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | HStack(alignment: .center, spacing: 0) {
106 | ChildSizeReader(size: $contentSize) {
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:105:13: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ChildSizeReader(size: $contentSize) {
107 | content
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:105:32: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ChildSizeReader(size: $contentSize) {
107 | content
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:109:18: error: 'border(_:width:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
:
107 | content
108 | }
109 | .border(Color.accentColor, width: isDragging ? 1 : 0)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:109:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
:
107 | content
108 | }
109 | .border(Color.accentColor, width: isDragging ? 1 : 0)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:109:31: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct PreviewResizableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @State private var size = CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.width)
:
101 | }
102 |
103 | private func contentWrapper(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
104 | VStack(alignment: .center, spacing: 0) {
105 | HStack(alignment: .center, spacing: 0) {
:
107 | content
108 | }
109 | .border(Color.accentColor, width: isDragging ? 1 : 0)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:127:23: error: 'trailing' is only available in macOS 10.15 or newer
123 | }
124 | fileprivate extension HorizontalAlignment {
125 | private enum CrossHorizontalAlignment : AlignmentID {
| `- note: add @available attribute to enclosing enum
126 | static func defaultValue(in d: ViewDimensions) -> CGFloat {
| `- note: add @available attribute to enclosing static method
127 | return d[.trailing]
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:143:9: 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
133 | // MARK: - View extension
134 |
135 | public extension View {
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
:
140 | ///
141 | /// Double-clicking the resize button adapts the container view size to the content size.
142 | func previewResizable() -> some View {
| `- note: add @available attribute to enclosing instance method
143 | modifier(PreviewResizableViewModifier())
| |- 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
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:143:9: error: 'modifier' is only available in macOS 10.15 or newer
133 | // MARK: - View extension
134 |
135 | public extension View {
| `- note: add @available attribute to enclosing extension
136 |
137 | /// Makes the container for the preview resizable.
:
140 | ///
141 | /// Double-clicking the resize button adapts the container view size to the content size.
142 | func previewResizable() -> some View {
| `- note: add @available attribute to enclosing instance method
143 | modifier(PreviewResizableViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | }
145 | }
BUILD FAILURE 6.0 macosSpm