The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PreviewResizable, reference main (ff59f6), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 11:47:50 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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",
  "traits": [
    "default"
  ],
  "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",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/yannxou/PreviewResizable.git
[1/90] Fetching previewresizable
Fetched https://github.com/yannxou/PreviewResizable.git from cache (0.62s)
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.3
Building package at path:  $PWD
https://github.com/yannxou/PreviewResizable.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 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/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.
[4/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: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 |     }
[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
    |                                                |- note: candidate has partially matching parameter list (importing: URL, contentType: UTType?)
    |                                                `- note: candidate has partially matching parameter list (importing: Data, contentType: UTType?)
 95 |         }
 96 |         .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/PreviewResizable/PreviewResizableViewModifier.swift:94:64: error: cannot infer contextual base in reference to member 'systemGroupedBackground'
 92 |             Text("\(text(for: size))")
 93 |                 .foregroundColor(isContentFitting ? .primary : .white)
 94 |                 .background(isContentFitting ? Color(uiColor: .systemGroupedBackground) : .red)
    |                                                                `- error: cannot infer contextual base in reference to member 'systemGroupedBackground'
 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.3 macosSpm