Build Information
Failed to build FigmaPreview, reference 0.1.0 (c8a998
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 15:00:39 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/artemnovichkov/figma-preview.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/artemnovichkov/figma-preview
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at c8a9981 Refactor FigmaModifier
Cloned https://github.com/artemnovichkov/figma-preview.git
Revision (git rev-parse @):
c8a998121199a5814bbbf47c26c4f4613cb6612c
SUCCESS checkout https://github.com/artemnovichkov/figma-preview.git at 0.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "figma-preview",
"name": "FigmaPreview",
"url": "https://github.com/artemnovichkov/figma-preview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/figma-preview",
"dependencies": [
]
}
]
}
Fetching https://github.com/artemnovichkov/figma-preview.git
[1/78] Fetching figma-preview
Fetched https://github.com/artemnovichkov/figma-preview.git from cache (1.01s)
Creating working copy for https://github.com/artemnovichkov/figma-preview.git
Working copy of https://github.com/artemnovichkov/figma-preview.git resolved at 0.1.0 (c8a9981)
warning: '.resolve-product-dependencies': dependency 'figma-preview' 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/artemnovichkov/figma-preview.git
{
"dependencies" : [
],
"manifest_display_name" : "FigmaPreview",
"name" : "FigmaPreview",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "FigmaPreview",
"targets" : [
"FigmaPreview"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FigmaPreview",
"module_type" : "SwiftTarget",
"name" : "FigmaPreview",
"path" : "Sources/FigmaPreview",
"product_memberships" : [
"FigmaPreview"
],
"sources" : [
"EnvironmentValues+FigmaAccessToken.swift",
"FigmaModifier.swift",
"PreviewState.swift",
"View+FigmaModifier.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling FigmaPreview PreviewState.swift
[4/7] Emitting module FigmaPreview
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/EnvironmentValues+FigmaAccessToken.swift:7:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 |
9 | var figmaAccessToken: String {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/EnvironmentValues+FigmaAccessToken.swift:21: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
19 | struct FigmaAccessTokenKey: EnvironmentKey {
20 |
21 | static var defaultValue = ""
| |- 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
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:11:20: error: 'Image' is only available in macOS 10.15 or newer
7 | struct FigmaViewModifier: ViewModifier {
8 |
9 | enum ContentType {
| `- note: add @available attribute to enclosing enum
10 | case url(URL)
11 | case image(Image)
| `- error: 'Image' is only available in macOS 10.15 or newer
12 | case figma(fileID: String, componentID: String)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
19 | }
20 |
21 | @State var contentType: ContentType
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State var previewState: PreviewState
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
20 |
21 | @State var contentType: ContentType
22 | @State var previewState: PreviewState
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | @State private var image: Image?
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:24:31: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
22 | @State var previewState: PreviewState
23 |
24 | @State private var image: Image?
| `- error: 'Image' is only available in macOS 10.15 or newer
25 | @State private var opacity: Double = 0.5
26 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
22 | @State var previewState: PreviewState
23 |
24 | @State private var image: Image?
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var opacity: Double = 0.5
26 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
23 |
24 | @State private var image: Image?
25 | @State private var opacity: Double = 0.5
| `- error: 'State' is only available in macOS 10.15 or newer
26 |
27 | @State private var position: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
25 | @State private var opacity: Double = 0.5
26 |
27 | @State private var position: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
28 | @State private var dragOffset: CGFloat = 0
29 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:28:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
26 |
27 | @State private var position: CGFloat = 0
28 | @State private var dragOffset: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
29 |
30 | @State private var session: URLSession = .shared
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
28 | @State private var dragOffset: CGFloat = 0
29 |
30 | @State private var session: URLSession = .shared
| `- error: 'State' is only available in macOS 10.15 or newer
31 |
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
30 | @State private var session: URLSession = .shared
31 |
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:34:41: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | 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
35 | GeometryReader { geometry in
36 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:78:70: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
76 | // MARK: - Private
77 |
78 | private func image(for contentType: ContentType) async throws -> Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
79 | switch contentType {
80 | case .url(let url):
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:102:37: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:118:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:118:62: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:142:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:142:61: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:164:81: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
162 | }
163 |
164 | private func image(for fileID: String, componentID: String) async throws -> Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
165 | let url = URL(string: "https://api.figma.com/v1/images/\(fileID)?ids=\(componentID)")!
166 | var request = URLRequest(url: url)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:186:27: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:207:84: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:207:69: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:206:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:204:19: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:9:79: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
10 | modifier(FigmaViewModifier(contentType: .url(url),
11 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:14:30: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
16 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:14:83: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
16 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:19:106: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
17 | }
18 |
19 | func compare(with fileID: String, componentID: String, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | modifier(FigmaViewModifier(contentType: .figma(fileID: fileID, componentID: componentID),
21 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:7:18: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
[5/7] Compiling FigmaPreview View+FigmaModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:9:79: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
10 | modifier(FigmaViewModifier(contentType: .url(url),
11 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:14:30: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
16 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:14:83: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
16 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:19:106: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
17 | }
18 |
19 | func compare(with fileID: String, componentID: String, previewState: PreviewState = .hidden) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | modifier(FigmaViewModifier(contentType: .figma(fileID: fileID, componentID: componentID),
21 | previewState: previewState))
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:7:18: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:10: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
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
10 | modifier(FigmaViewModifier(contentType: .url(url),
| |- 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
11 | previewState: previewState))
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:10:9: error: 'modifier' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
10 | modifier(FigmaViewModifier(contentType: .url(url),
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | previewState: previewState))
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:15: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
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
| |- 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
16 | previewState: previewState))
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:15:9: error: 'modifier' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
12 | }
13 |
14 | func compare(with image: Image, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | modifier(FigmaViewModifier(contentType: .image(image),
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | previewState: previewState))
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:20: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
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
17 | }
18 |
19 | func compare(with fileID: String, componentID: String, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | modifier(FigmaViewModifier(contentType: .figma(fileID: fileID, componentID: componentID),
| |- 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
21 | previewState: previewState))
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/View+FigmaModifier.swift:20:9: error: 'modifier' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension View {
| `- note: add @available attribute to enclosing extension
8 |
9 | func compare(with url: URL, previewState: PreviewState = .hidden) -> some View {
:
17 | }
18 |
19 | func compare(with fileID: String, componentID: String, previewState: PreviewState = .hidden) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | modifier(FigmaViewModifier(contentType: .figma(fileID: fileID, componentID: componentID),
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | previewState: previewState))
22 | }
[6/7] Compiling FigmaPreview EnvironmentValues+FigmaAccessToken.swift
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/EnvironmentValues+FigmaAccessToken.swift:7:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 |
9 | var figmaAccessToken: String {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/EnvironmentValues+FigmaAccessToken.swift:21: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
19 | struct FigmaAccessTokenKey: EnvironmentKey {
20 |
21 | static var defaultValue = ""
| |- 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
22 | }
23 |
[7/7] Compiling FigmaPreview FigmaModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:11:20: error: 'Image' is only available in macOS 10.15 or newer
7 | struct FigmaViewModifier: ViewModifier {
8 |
9 | enum ContentType {
| `- note: add @available attribute to enclosing enum
10 | case url(URL)
11 | case image(Image)
| `- error: 'Image' is only available in macOS 10.15 or newer
12 | case figma(fileID: String, componentID: String)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
19 | }
20 |
21 | @State var contentType: ContentType
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State var previewState: PreviewState
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
20 |
21 | @State var contentType: ContentType
22 | @State var previewState: PreviewState
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | @State private var image: Image?
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:24:31: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
22 | @State var previewState: PreviewState
23 |
24 | @State private var image: Image?
| `- error: 'Image' is only available in macOS 10.15 or newer
25 | @State private var opacity: Double = 0.5
26 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
22 | @State var previewState: PreviewState
23 |
24 | @State private var image: Image?
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var opacity: Double = 0.5
26 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
23 |
24 | @State private var image: Image?
25 | @State private var opacity: Double = 0.5
| `- error: 'State' is only available in macOS 10.15 or newer
26 |
27 | @State private var position: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
25 | @State private var opacity: Double = 0.5
26 |
27 | @State private var position: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
28 | @State private var dragOffset: CGFloat = 0
29 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:28:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
26 |
27 | @State private var position: CGFloat = 0
28 | @State private var dragOffset: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
29 |
30 | @State private var session: URLSession = .shared
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
28 | @State private var dragOffset: CGFloat = 0
29 |
30 | @State private var session: URLSession = .shared
| `- error: 'State' is only available in macOS 10.15 or newer
31 |
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
30 | @State private var session: URLSession = .shared
31 |
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:34:41: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | 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
35 | GeometryReader { geometry in
36 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:78:70: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
76 | // MARK: - Private
77 |
78 | private func image(for contentType: ContentType) async throws -> Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
79 | switch contentType {
80 | case .url(let url):
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:102:37: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:118:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:118:62: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:142:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:142:61: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:164:81: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
162 | }
163 |
164 | private func image(for fileID: String, componentID: String) async throws -> Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
165 | let url = URL(string: "https://api.figma.com/v1/images/\(fileID)?ids=\(componentID)")!
166 | var request = URLRequest(url: url)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:186:27: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:207:84: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:207:69: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:206:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:204:19: error: 'View' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:35:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | VStack {
37 | settingsPanel
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:36:13: error: 'VStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | settingsPanel
38 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:38:17: error: 'ZStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
37 | settingsPanel
38 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | content
40 | switch previewState {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:42:25: error: 'EmptyView' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
40 | switch previewState {
41 | case .hidden:
42 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | case .layers:
44 | figmaImage(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:42:25: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
40 | switch previewState {
41 | case .hidden:
42 | EmptyView()
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | case .layers:
44 | figmaImage(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:42:25: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
40 | switch previewState {
41 | case .hidden:
42 | EmptyView()
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | case .layers:
44 | figmaImage(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:44:25: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
42 | EmptyView()
43 | case .layers:
44 | figmaImage(geometry: geometry)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | case .compare:
46 | figmaImage(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:44:25: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
42 | EmptyView()
43 | case .layers:
44 | figmaImage(geometry: geometry)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | case .compare:
46 | figmaImage(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:46:25: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
44 | figmaImage(geometry: geometry)
45 | case .compare:
46 | figmaImage(geometry: geometry)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:38:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
37 | settingsPanel
38 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
39 | content
40 | switch previewState {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:51:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
49 | }
50 | }
51 | .onChange(of: previewState) { previewState in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | switch previewState {
53 | case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:56:17: error: setter for 'opacity' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
54 | break
55 | case .layers:
56 | opacity = 0.5
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | case .compare:
58 | opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:58:17: error: setter for 'opacity' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
56 | opacity = 0.5
57 | case .compare:
58 | opacity = 1
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | position = 0
60 | dragOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:59:17: error: setter for 'position' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
57 | case .compare:
58 | opacity = 1
59 | position = 0
| |- error: setter for 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | dragOffset = 0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:60:17: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
58 | opacity = 1
59 | position = 0
60 | dragOffset = 0
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:63:10: error: 'task(priority:_:)' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
61 | }
62 | }
63 | .task {
| |- error: 'task(priority:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
64 | do {
65 | let image = try await image(for: contentType)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:66:23: error: 'MainActor' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
64 | do {
65 | let image = try await image(for: contentType)
66 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | self.image = image
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:66:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
64 | do {
65 | let image = try await image(for: contentType)
66 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | self.image = image
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:67:21: error: setter for 'image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
32 | @Environment(\.figmaAccessToken) private var figmaAccessToken
33 |
34 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | GeometryReader { geometry in
36 | VStack {
:
65 | let image = try await image(for: contentType)
66 | await MainActor.run {
67 | self.image = image
| |- error: setter for 'image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:103:9: error: 'VStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:103:16: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- warning: conformance of 'Text' 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
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:103:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:104:13: error: 'HStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:104:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
| |- warning: conformance of 'Text' 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
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:104:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:105:17: error: 'Picker' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:105:17: error: 'init(_:selection:content:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
| |- error: 'init(_:selection:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:105:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:105:53: error: 'animation' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:106:21: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
107 | }
108 | .pickerStyle(.segmented)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:106:21: error: 'ForEach' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | .pickerStyle(.segmented)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:106:21: error: 'init(_:content:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
106 | ForEach(PreviewState.allCases, content: \.body)
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | .pickerStyle(.segmented)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:105:66: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:108:18: error: 'pickerStyle' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
108 | .pickerStyle(.segmented)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | if previewState == .layers {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:108:31: error: 'segmented' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
106 | ForEach(PreviewState.allCases, content: \.body)
107 | }
108 | .pickerStyle(.segmented)
| |- error: 'segmented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | if previewState == .layers {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:111:17: error: 'Slider' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
109 | }
110 | if previewState == .layers {
111 | Slider(value: $opacity.animation(), in: 0...1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .tint(.black)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:111:17: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
109 | }
110 | if previewState == .layers {
111 | Slider(value: $opacity.animation(), in: 0...1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .tint(.black)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:111:40: error: 'animation' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
109 | }
110 | if previewState == .layers {
111 | Slider(value: $opacity.animation(), in: 0...1)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .tint(.black)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:112:22: error: 'tint' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
110 | if previewState == .layers {
111 | Slider(value: $opacity.animation(), in: 0...1)
112 | .tint(.black)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:112:28: error: 'black' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
110 | if previewState == .layers {
111 | Slider(value: $opacity.animation(), in: 0...1)
112 | .tint(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:110:40: error: 'buildIf' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
108 | .pickerStyle(.segmented)
109 | }
110 | if previewState == .layers {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | Slider(value: $opacity.animation(), in: 0...1)
112 | .tint(.black)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:113:13: error: 'buildIf' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
111 | Slider(value: $opacity.animation(), in: 0...1)
112 | .tint(.black)
113 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:103:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- warning: conformance of 'Optional<Wrapped>' 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
104 | HStack {
105 | Picker("", selection: $previewState.animation()) {
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:115:10: error: 'padding' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
100 | }
101 |
102 | private var settingsPanel: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | HStack {
:
113 | }
114 | }
115 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | }
117 |
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:119:9: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
120 | if let image {
121 | image
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:119:9: error: 'ZStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | if let image {
121 | image
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:119:9: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
120 | if let image {
121 | image
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:122:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
121 | image
122 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | .scaledToFit()
124 | .opacity(opacity)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:123:22: error: 'scaledToFit()' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
121 | image
122 | .resizable()
123 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .opacity(opacity)
125 | .if(previewState == .compare) { image in
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:124:22: error: 'opacity' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
122 | .resizable()
123 | .scaledToFit()
124 | .opacity(opacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | .if(previewState == .compare) { image in
126 | image
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:127:30: error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
125 | .if(previewState == .compare) { image in
126 | image
127 | .mask(alignment: .leading) {
| |- error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .frame(width: geometry.size.width / 2 + position + dragOffset)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:127:47: error: 'leading' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
125 | .if(previewState == .compare) { image in
126 | image
127 | .mask(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .frame(width: geometry.size.width / 2 + position + dragOffset)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:128:33: error: 'Rectangle' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
126 | image
127 | .mask(alignment: .leading) {
128 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | .frame(width: geometry.size.width / 2 + position + dragOffset)
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:129:38: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
127 | .mask(alignment: .leading) {
128 | Rectangle()
129 | .frame(width: geometry.size.width / 2 + position + dragOffset)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:132:45: error: 'buildIf' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
130 | }
131 | }
132 | if previewState == .compare {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | slideView(geometry: geometry)
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:134:17: error: 'buildIf' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
132 | if previewState == .compare {
133 | slideView(geometry: geometry)
134 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | } else {
136 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:120:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | image
122 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:120:26: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
| |- warning: conformance of 'Optional<Wrapped>' 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
121 | image
122 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:136:17: error: 'ProgressView' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
134 | }
135 | } else {
136 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
137 | .progressViewStyle(.circular)
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:136:17: error: 'init()' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
134 | }
135 | } else {
136 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
137 | .progressViewStyle(.circular)
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:137:22: error: 'progressViewStyle' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
135 | } else {
136 | ProgressView()
137 | .progressViewStyle(.circular)
| |- error: 'progressViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:137:41: error: 'circular' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
135 | } else {
136 | ProgressView()
137 | .progressViewStyle(.circular)
| |- error: 'circular' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:135:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
120 | if let image {
:
133 | slideView(geometry: geometry)
134 | }
135 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | ProgressView()
137 | .progressViewStyle(.circular)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:119:16: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
116 | }
117 |
118 | private func figmaImage(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
119 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
120 | if let image {
121 | image
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:143:9: error: 'ZStack' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:144:13: error: 'Image' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:144:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:145:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | .background(Color.white)
147 | .opacity(0.4)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:146:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
147 | .opacity(0.4)
148 | .cornerRadius(20)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:146:29: error: 'Color' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .opacity(0.4)
148 | .cornerRadius(20)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:146:35: error: 'white' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .opacity(0.4)
148 | .cornerRadius(20)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:147:18: error: 'opacity' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
145 | .frame(width: 40, height: 40)
146 | .background(Color.white)
147 | .opacity(0.4)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .cornerRadius(20)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:148:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
146 | .background(Color.white)
147 | .opacity(0.4)
148 | .cornerRadius(20)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | }
150 | .fixedSize(horizontal: true, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:150:10: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
148 | .cornerRadius(20)
149 | }
150 | .fixedSize(horizontal: true, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | .offset(x: position + dragOffset)
152 | .gesture(
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:151:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
149 | }
150 | .fixedSize(horizontal: true, vertical: true)
151 | .offset(x: position + dragOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | .gesture(
153 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:152:10: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
150 | .fixedSize(horizontal: true, vertical: true)
151 | .offset(x: position + dragOffset)
152 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | DragGesture()
154 | .onChanged { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:153:13: error: 'DragGesture' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
151 | .offset(x: position + dragOffset)
152 | .gesture(
153 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | .onChanged { gesture in
155 | dragOffset = gesture.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:153:13: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
151 | .offset(x: position + dragOffset)
152 | .gesture(
153 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
154 | .onChanged { gesture in
155 | dragOffset = gesture.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:154:18: error: 'onChanged' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
152 | .gesture(
153 | DragGesture()
154 | .onChanged { gesture in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | dragOffset = gesture.translation.width
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:155:21: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
153 | DragGesture()
154 | .onChanged { gesture in
155 | dragOffset = gesture.translation.width
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | }
157 | .onEnded { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:157:18: error: 'onEnded' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
155 | dragOffset = gesture.translation.width
156 | }
157 | .onEnded { gesture in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | position += gesture.translation.width
159 | dragOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:158:21: error: cannot pass as inout because setter for 'position' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
156 | }
157 | .onEnded { gesture in
158 | position += gesture.translation.width
| |- error: cannot pass as inout because setter for 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | dragOffset = 0
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:159:21: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
140 | }
141 |
142 | private func slideView(geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
143 | ZStack {
144 | Image(systemName: "arrow.left.and.right")
:
157 | .onEnded { gesture in
158 | position += gesture.translation.width
159 | dragOffset = 0
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | }
161 | )
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:168:43: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
162 | }
163 |
164 | private func image(for fileID: String, componentID: String) async throws -> Image {
| `- note: add @available attribute to enclosing instance method
165 | let url = URL(string: "https://api.figma.com/v1/images/\(fileID)?ids=\(componentID)")!
166 | var request = URLRequest(url: url)
167 | request.setValue(figmaAccessToken, forHTTPHeaderField: "X-FIGMA-TOKEN")
168 | let (data, _) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
169 | let response = try JSONDecoder().decode(FigmaResponse.self, from: data)
170 | let formattedComponentID = componentID.replacingOccurrences(of: "-", with: ":")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:174:48: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
5 | import SwiftUI
6 |
7 | struct FigmaViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
8 |
9 | enum ContentType {
:
162 | }
163 |
164 | private func image(for fileID: String, componentID: String) async throws -> Image {
| `- note: add @available attribute to enclosing instance method
165 | let url = URL(string: "https://api.figma.com/v1/images/\(fileID)?ids=\(componentID)")!
166 | var request = URLRequest(url: url)
:
172 | throw Error.failToGetImageURL(formattedComponentID)
173 | }
174 | let (imageData, _) = try await session.data(from: imageURL)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
175 | guard let image = UIImage(data: imageData) else {
176 | throw Error.failToMakeImage(imageURL)
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:175:27: error: cannot find 'UIImage' in scope
173 | }
174 | let (imageData, _) = try await session.data(from: imageURL)
175 | guard let image = UIImage(data: imageData) else {
| `- error: cannot find 'UIImage' in scope
176 | throw Error.failToMakeImage(imageURL)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:178:16: error: no exact matches in call to initializer
176 | throw Error.failToMakeImage(imageURL)
177 | }
178 | return Image(uiImage: image)
| `- error: no exact matches in call to initializer
179 | }
180 | }
SwiftUICore.Image:3:12: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Image {
3 | public init(_ name: String, bundle: Bundle? = nil)
| `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
4 | public init(_ name: String, bundle: Bundle? = nil, label: Text)
5 | public init(decorative name: String, bundle: Bundle? = nil)
SwiftUICore.Image:3:12: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Image {
3 | public init(_ resource: ImageResource)
| `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- warning: conformance of 'Image' 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
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: error: 'Image' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:189:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
| |- warning: conformance of 'Image' 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
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- warning: conformance of 'Image' 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
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: error: 'Image' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:191:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
189 | Image(systemName: "eye.slash")
190 | case .layers:
191 | Image(systemName: "square.3.layers.3d.down.right")
| |- warning: conformance of 'Image' 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
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:193:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
:
191 | Image(systemName: "square.3.layers.3d.down.right")
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
| |- warning: conformance of 'Image' 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
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:193:13: error: 'Image' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
:
191 | Image(systemName: "square.3.layers.3d.down.right")
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:193:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
:
191 | Image(systemName: "square.3.layers.3d.down.right")
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:193:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
:
191 | Image(systemName: "square.3.layers.3d.down.right")
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:193:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
:
191 | Image(systemName: "square.3.layers.3d.down.right")
192 | case .compare:
193 | Image(systemName: "slider.horizontal.below.square.and.square.filled")
| |- warning: conformance of 'Image' 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
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:186:32: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
180 | }
181 |
182 | extension PreviewState: View, Identifiable {
| `- note: add @available attribute to enclosing extension
183 |
184 | public var id: Self { self }
185 |
186 | public var body: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
| `- note: add @available attribute to enclosing property
187 | switch self {
188 | case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:208:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| `- note: add @available attribute to enclosing instance method
208 | if condition {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | transform(self)
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:211:14: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
210 | }
211 | else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | self
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/FigmaPreview/FigmaModifier.swift:207:89: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
202 | }
203 |
204 | private extension View {
| `- note: add @available attribute to enclosing extension
205 |
206 | @ViewBuilder
207 | func `if`<T>(_ condition: Bool, transform: (Self) -> T) -> some View where T : View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
| `- note: add @available attribute to enclosing instance method
208 | if condition {
209 | transform(self)
BUILD FAILURE 6.0 macosSpm