Build Information
Failed to build VisualizeTouches, reference main (a74f2e
), with Swift 6.0 for macOS (SPM) on 3 Mar 2025 23:32:41 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/robb/visualizeTouches.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/robb/visualizeTouches
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a74f2e3 Create FUNDING.yml
Cloned https://github.com/robb/visualizeTouches.git
Revision (git rev-parse @):
a74f2e3d033b42721d2c7768868ddd4e8621804d
SUCCESS checkout https://github.com/robb/visualizeTouches.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "visualizetouches",
"name": "VisualizeTouches",
"url": "https://github.com/robb/visualizeTouches.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/visualizeTouches",
"dependencies": [
]
}
]
}
Fetching https://github.com/robb/visualizeTouches.git
[1/23] Fetching visualizetouches
Fetched https://github.com/robb/visualizeTouches.git from cache (0.62s)
Creating working copy for https://github.com/robb/visualizeTouches.git
Working copy of https://github.com/robb/visualizeTouches.git resolved at main (a74f2e3)
warning: '.resolve-product-dependencies': dependency 'visualizetouches' 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/robb/visualizeTouches.git
https://github.com/robb/visualizeTouches.git
{
"dependencies" : [
],
"manifest_display_name" : "VisualizeTouches",
"name" : "VisualizeTouches",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "18.0"
}
],
"products" : [
{
"name" : "VisualizeTouches",
"targets" : [
"VisualizeTouches"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "VisualizeTouches",
"module_type" : "SwiftTarget",
"name" : "VisualizeTouches",
"path" : "Sources/VisualizeTouches",
"product_memberships" : [
"VisualizeTouches"
],
"sources" : [
"TouchVisualization.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module VisualizeTouches
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:23:54: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:43:37: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:29: error: 'AnyCancellable' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:51:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
52 |
53 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:53:41: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
52 |
53 | 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
54 | content
55 | #if targetEnvironment(simulator)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
84 | }
85 |
86 | @State var touches: [Touch] = []
| `- error: 'State' is only available in macOS 10.15 or newer
87 |
88 | var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:90:41: error: 'View' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | 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
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:105:20: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | private struct TouchView: View {
| `- note: add @available attribute to enclosing struct
105 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | Circle()
107 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:120:29: error: cannot find type 'UIGestureRecognizer' in scope
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
120 | final class Recognizer: UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
121 | var touches = 0
122 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:51: error: cannot find type 'UITouch' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:73: error: cannot find type 'UIEvent' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:23: error: method does not override any method from its superclass
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:51: error: cannot find type 'UITouch' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:73: error: cannot find type 'UIEvent' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:23: error: method does not override any method from its superclass
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:51: error: cannot find type 'UITouch' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:73: error: cannot find type 'UIEvent' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:23: error: method does not override any method from its superclass
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:55: error: cannot find type 'UITouch' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:77: error: cannot find type 'UIEvent' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:23: error: method does not override any method from its superclass
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:160:40: error: cannot find type 'UIGestureRecognizerDelegate' in scope
158 | }
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
162 | true
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:35: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:93: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:168:6: error: 'Binding' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
166 | var isEnabled: Bool
167 |
168 | @Binding var touches: [TouchVisualizer.Touch]
| `- error: 'Binding' is only available in macOS 10.15 or newer
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:170:37: error: cannot find type 'CoordinateSpaceConverter' in scope
168 | @Binding var touches: [TouchVisualizer.Touch]
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
| `- error: cannot find type 'CoordinateSpaceConverter' in scope
171 | Coordinator()
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:55: error: cannot find type 'UIGestureRecognizer' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:43: error: cannot find type 'Context' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'Context' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:61: error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:100: error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:119:40: error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
SwiftUI.UIGestureRecognizerRepresentable:6:44: note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
4 | @available(watchOS, unavailable)
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public protocol UIGestureRecognizerRepresentable {
| `- note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:197:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
195 | }
196 |
197 | #Preview("Touch") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:198:5: error: 'VStack' is only available in macOS 10.15 or newer
196 |
197 | #Preview("Touch") {
198 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:200:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | .background(.black)
202 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:26: error: 'black' is only available in macOS 10.15 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:204:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
202 |
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | .background(.blue)
206 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:26: error: 'blue' is only available in macOS 10.15 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:208:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
206 |
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | .background(.white)
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:26: error: 'white' is only available in macOS 10.15 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:6: error: 'Previewable()' is only available in macOS 14.0 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:19: error: 'State' is only available in macOS 10.15 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:213:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
211 | }
212 |
213 | #Preview("List") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'List' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'init(content:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'Button' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'Button' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'Button' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'Slider' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:226:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
224 | }
225 |
226 | #Preview("Button") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
227 | Button("Hello") {}
228 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'Button' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'init(_:action:)' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:12: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:228:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
226 | #Preview("Button") {
227 | Button("Hello") {}
228 | .visualizeTouches()
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }
230 |
[4/4] Compiling VisualizeTouches TouchVisualization.swift
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:23:54: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:43:37: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:29: error: 'AnyCancellable' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:51:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
52 |
53 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:53:41: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
52 |
53 | 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
54 | content
55 | #if targetEnvironment(simulator)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
84 | }
85 |
86 | @State var touches: [Touch] = []
| `- error: 'State' is only available in macOS 10.15 or newer
87 |
88 | var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:90:41: error: 'View' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | 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
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:105:20: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | private struct TouchView: View {
| `- note: add @available attribute to enclosing struct
105 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | Circle()
107 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:120:29: error: cannot find type 'UIGestureRecognizer' in scope
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
120 | final class Recognizer: UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
121 | var touches = 0
122 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:51: error: cannot find type 'UITouch' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:73: error: cannot find type 'UIEvent' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:23: error: method does not override any method from its superclass
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:51: error: cannot find type 'UITouch' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:73: error: cannot find type 'UIEvent' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:23: error: method does not override any method from its superclass
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:51: error: cannot find type 'UITouch' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:73: error: cannot find type 'UIEvent' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:23: error: method does not override any method from its superclass
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:55: error: cannot find type 'UITouch' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:77: error: cannot find type 'UIEvent' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:23: error: method does not override any method from its superclass
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:160:40: error: cannot find type 'UIGestureRecognizerDelegate' in scope
158 | }
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
162 | true
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:35: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:93: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:168:6: error: 'Binding' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
166 | var isEnabled: Bool
167 |
168 | @Binding var touches: [TouchVisualizer.Touch]
| `- error: 'Binding' is only available in macOS 10.15 or newer
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:170:37: error: cannot find type 'CoordinateSpaceConverter' in scope
168 | @Binding var touches: [TouchVisualizer.Touch]
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
| `- error: cannot find type 'CoordinateSpaceConverter' in scope
171 | Coordinator()
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:55: error: cannot find type 'UIGestureRecognizer' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:43: error: cannot find type 'Context' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'Context' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:61: error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:100: error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:119:40: error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
SwiftUI.UIGestureRecognizerRepresentable:6:44: note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
4 | @available(watchOS, unavailable)
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public protocol UIGestureRecognizerRepresentable {
| `- note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:197:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
195 | }
196 |
197 | #Preview("Touch") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:198:5: error: 'VStack' is only available in macOS 10.15 or newer
196 |
197 | #Preview("Touch") {
198 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:200:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | .background(.black)
202 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:26: error: 'black' is only available in macOS 10.15 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:204:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
202 |
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | .background(.blue)
206 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:26: error: 'blue' is only available in macOS 10.15 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:208:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
206 |
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | .background(.white)
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:26: error: 'white' is only available in macOS 10.15 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:6: error: 'Previewable()' is only available in macOS 14.0 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:19: error: 'State' is only available in macOS 10.15 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:213:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
211 | }
212 |
213 | #Preview("List") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'List' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'init(content:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'Button' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'Button' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'Button' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'Slider' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:226:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
224 | }
225 |
226 | #Preview("Button") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
227 | Button("Hello") {}
228 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'Button' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'init(_:action:)' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:12: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:228:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
226 | #Preview("Button") {
227 | Button("Hello") {}
228 | .visualizeTouches()
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }
230 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:24:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:24:9: error: 'modifier' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:44:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:44:9: error: 'modifier' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:60:30: error: cannot find 'UIScreen' in scope
58 | .visualizeTouches(isCaptured)
59 | .onAppear {
60 | isCaptured = UIScreen.main.isCaptured
| `- error: cannot find 'UIScreen' in scope
61 |
62 | cancellable = NotificationCenter.default
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:63:37: error: cannot find 'UIScreen' in scope
61 |
62 | cancellable = NotificationCenter.default
63 | .publisher(for: UIScreen.capturedDidChangeNotification)
| `- error: cannot find 'UIScreen' in scope
64 | .sink { notification in
65 | guard let screen = notification.object as? UIScreen else {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:92:14: error: 'gesture' is unavailable in macOS
90 | func body(content: Content) -> some View {
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
| `- error: 'gesture' is unavailable in macOS
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
SwiftUI.View:7:29: note: 'gesture' has been explicitly marked unavailable here
5 | @available(visionOS, unavailable)
6 | extension View {
7 | nonisolated public func gesture(_ representable: some UIGestureRecognizerRepresentable) -> some View
| `- note: 'gesture' has been explicitly marked unavailable here
8 |
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:93:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | ForEach(isEnabled ? touches : []) { touch in
95 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:94:17: error: 'ForEach' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | TouchView()
96 | .position(touch.coordinates)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:94:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | TouchView()
96 | .position(touch.coordinates)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:96:26: error: 'position' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
94 | ForEach(isEnabled ? touches : []) { touch in
95 | TouchView()
96 | .position(touch.coordinates)
| |- error: 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:98:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
96 | .position(touch.coordinates)
97 | }
98 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
99 | .allowsHitTesting(false)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:99:18: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
97 | }
98 | .accessibilityHidden(true)
99 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:115:26: error: cannot convert value of type 'any KeyPath<EnvironmentValues, ColorScheme> & Sendable' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
113 | Circle().strokeBorder(.regularMaterial, lineWidth: 2)
114 | }
115 | .environment(\.colorScheme, .light)
| `- error: cannot convert value of type 'any KeyPath<EnvironmentValues, ColorScheme> & Sendable' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
116 | }
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:115:42: error: cannot infer contextual base in reference to member 'light'
113 | Circle().strokeBorder(.regularMaterial, lineWidth: 2)
114 | }
115 | .environment(\.colorScheme, .light)
| `- error: cannot infer contextual base in reference to member 'light'
116 | }
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:124:13: error: 'super' members cannot be referenced in a root class
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
124 | super.touchesBegan(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
125 |
126 | self.touches += touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:129:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
127 |
128 | if self.touches >= 0 {
129 | self.state = .changed
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:129:31: error: cannot infer contextual base in reference to member 'changed'
127 |
128 | if self.touches >= 0 {
129 | self.state = .changed
| `- error: cannot infer contextual base in reference to member 'changed'
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:135:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
134 | if self.touches >= 0 {
135 | self.state = .changed
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
136 | }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:135:31: error: cannot infer contextual base in reference to member 'changed'
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
134 | if self.touches >= 0 {
135 | self.state = .changed
| `- error: cannot infer contextual base in reference to member 'changed'
136 | }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:140:13: error: 'super' members cannot be referenced in a root class
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
140 | super.touchesEnded(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
141 |
142 | self.touches -= touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:145:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
143 |
144 | if self.touches == 0 {
145 | self.state = .ended
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:145:31: error: cannot infer contextual base in reference to member 'ended'
143 |
144 | if self.touches == 0 {
145 | self.state = .ended
| `- error: cannot infer contextual base in reference to member 'ended'
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:150:13: error: 'super' members cannot be referenced in a root class
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
150 | super.touchesCancelled(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
151 |
152 | self.touches -= touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:155:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
153 |
154 | if self.touches == 0 {
155 | self.state = .cancelled
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
156 | }
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:155:31: error: cannot infer contextual base in reference to member 'cancelled'
153 |
154 | if self.touches == 0 {
155 | self.state = .cancelled
| `- error: cannot infer contextual base in reference to member 'cancelled'
156 | }
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:176:11: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'cancelsTouchesInView'
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'cancelsTouchesInView'
177 | g.delegate = context.coordinator
178 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:177:11: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'delegate'
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
177 | g.delegate = context.coordinator
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'delegate'
178 |
179 | return g
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:186:71: error: 'nil' requires a contextual type
184 | case .began where isEnabled, .changed where isEnabled:
185 | touches = (0 ..< recognizer.numberOfTouches).map { i in
186 | let globalPoint = recognizer.location(ofTouch: i, in: nil)
| `- error: 'nil' requires a contextual type
187 | let point = context.converter.convert(globalPoint: globalPoint)
188 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:192:13: error: setter for 'touches' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- note: add @available attribute to enclosing instance method
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
:
190 | }
191 | default:
192 | touches = []
| |- error: setter for 'touches' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
193 | }
194 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module VisualizeTouches
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:23:54: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:43:37: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:29: error: 'AnyCancellable' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:51:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
52 |
53 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:53:41: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
52 |
53 | 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
54 | content
55 | #if targetEnvironment(simulator)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
84 | }
85 |
86 | @State var touches: [Touch] = []
| `- error: 'State' is only available in macOS 10.15 or newer
87 |
88 | var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:90:41: error: 'View' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | 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
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:105:20: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | private struct TouchView: View {
| `- note: add @available attribute to enclosing struct
105 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | Circle()
107 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:120:29: error: cannot find type 'UIGestureRecognizer' in scope
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
120 | final class Recognizer: UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
121 | var touches = 0
122 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:51: error: cannot find type 'UITouch' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:73: error: cannot find type 'UIEvent' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:23: error: method does not override any method from its superclass
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:51: error: cannot find type 'UITouch' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:73: error: cannot find type 'UIEvent' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:23: error: method does not override any method from its superclass
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:51: error: cannot find type 'UITouch' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:73: error: cannot find type 'UIEvent' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:23: error: method does not override any method from its superclass
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:55: error: cannot find type 'UITouch' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:77: error: cannot find type 'UIEvent' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:23: error: method does not override any method from its superclass
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:160:40: error: cannot find type 'UIGestureRecognizerDelegate' in scope
158 | }
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
162 | true
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:35: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:93: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:168:6: error: 'Binding' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
166 | var isEnabled: Bool
167 |
168 | @Binding var touches: [TouchVisualizer.Touch]
| `- error: 'Binding' is only available in macOS 10.15 or newer
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:170:37: error: cannot find type 'CoordinateSpaceConverter' in scope
168 | @Binding var touches: [TouchVisualizer.Touch]
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
| `- error: cannot find type 'CoordinateSpaceConverter' in scope
171 | Coordinator()
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:55: error: cannot find type 'UIGestureRecognizer' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:43: error: cannot find type 'Context' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'Context' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:61: error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:100: error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:119:40: error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
SwiftUI.UIGestureRecognizerRepresentable:6:44: note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
4 | @available(watchOS, unavailable)
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public protocol UIGestureRecognizerRepresentable {
| `- note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:197:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
195 | }
196 |
197 | #Preview("Touch") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:198:5: error: 'VStack' is only available in macOS 10.15 or newer
196 |
197 | #Preview("Touch") {
198 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:200:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | .background(.black)
202 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:26: error: 'black' is only available in macOS 10.15 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:204:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
202 |
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | .background(.blue)
206 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:26: error: 'blue' is only available in macOS 10.15 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:208:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
206 |
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | .background(.white)
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:26: error: 'white' is only available in macOS 10.15 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:6: error: 'Previewable()' is only available in macOS 14.0 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:19: error: 'State' is only available in macOS 10.15 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:213:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
211 | }
212 |
213 | #Preview("List") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'List' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'init(content:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'Button' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'Button' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'Button' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'Slider' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:226:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
224 | }
225 |
226 | #Preview("Button") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
227 | Button("Hello") {}
228 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'Button' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'init(_:action:)' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:12: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:228:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
226 | #Preview("Button") {
227 | Button("Hello") {}
228 | .visualizeTouches()
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }
230 |
[3/3] Compiling VisualizeTouches TouchVisualization.swift
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:23:54: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:43:37: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:29: error: 'AnyCancellable' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:49:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
| `- error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @State var isCaptured: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:51:6: error: 'State' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
52 |
53 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:53:41: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | private struct AutoVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 | @State var cancellable: AnyCancellable?
50 |
51 | @State var isCaptured: Bool = false
52 |
53 | 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
54 | content
55 | #if targetEnvironment(simulator)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
84 | }
85 |
86 | @State var touches: [Touch] = []
| `- error: 'State' is only available in macOS 10.15 or newer
87 |
88 | var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:90:41: error: 'View' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | 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
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:105:20: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | private struct TouchView: View {
| `- note: add @available attribute to enclosing struct
105 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | Circle()
107 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:120:29: error: cannot find type 'UIGestureRecognizer' in scope
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
120 | final class Recognizer: UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
121 | var touches = 0
122 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:51: error: cannot find type 'UITouch' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:73: error: cannot find type 'UIEvent' in scope
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:123:23: error: method does not override any method from its superclass
121 | var touches = 0
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
124 | super.touchesBegan(touches, with: event)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:51: error: cannot find type 'UITouch' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:73: error: cannot find type 'UIEvent' in scope
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:133:23: error: method does not override any method from its superclass
131 | }
132 |
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
134 | if self.touches >= 0 {
135 | self.state = .changed
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:51: error: cannot find type 'UITouch' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:73: error: cannot find type 'UIEvent' in scope
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:139:23: error: method does not override any method from its superclass
137 | }
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
140 | super.touchesEnded(touches, with: event)
141 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:55: error: cannot find type 'UITouch' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UITouch' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:77: error: cannot find type 'UIEvent' in scope
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: cannot find type 'UIEvent' in scope
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:149:23: error: method does not override any method from its superclass
147 | }
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
| `- error: method does not override any method from its superclass
150 | super.touchesCancelled(touches, with: event)
151 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:160:40: error: cannot find type 'UIGestureRecognizerDelegate' in scope
158 | }
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
162 | true
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:35: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:161:93: error: cannot find type 'UIGestureRecognizer' in scope
159 |
160 | final class Coordinator: NSObject, UIGestureRecognizerDelegate {
161 | func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith _: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
162 | true
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:168:6: error: 'Binding' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
166 | var isEnabled: Bool
167 |
168 | @Binding var touches: [TouchVisualizer.Touch]
| `- error: 'Binding' is only available in macOS 10.15 or newer
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:170:37: error: cannot find type 'CoordinateSpaceConverter' in scope
168 | @Binding var touches: [TouchVisualizer.Touch]
169 |
170 | func makeCoordinator(converter: CoordinateSpaceConverter) -> Coordinator {
| `- error: cannot find type 'CoordinateSpaceConverter' in scope
171 | Coordinator()
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:55: error: cannot find type 'UIGestureRecognizer' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'UIGestureRecognizer' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:174:43: error: cannot find type 'Context' in scope
172 | }
173 |
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
| `- error: cannot find type 'Context' in scope
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:61: error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'UIGestureRecognizerType' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:182:100: error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: 'TouchVisualizerGesture' declared here
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- error: 'Context' is not a member type of struct 'VisualizeTouches.TouchVisualizerGesture'
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:119:40: error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- error: 'UIGestureRecognizerRepresentable' is unavailable in macOS
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
SwiftUI.UIGestureRecognizerRepresentable:6:44: note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
4 | @available(watchOS, unavailable)
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public protocol UIGestureRecognizerRepresentable {
| `- note: 'UIGestureRecognizerRepresentable' has been explicitly marked unavailable here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:197:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
195 | }
196 |
197 | #Preview("Touch") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:198:5: error: 'VStack' is only available in macOS 10.15 or newer
196 |
197 | #Preview("Touch") {
198 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:200:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | VStack {
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | .background(.black)
202 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:201:26: error: 'black' is only available in macOS 10.15 or newer
199 | TouchView()
200 | .frame(maxWidth: .infinity, maxHeight: .infinity)
201 | .background(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 |
203 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:204:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
202 |
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | .background(.blue)
206 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:205:26: error: 'blue' is only available in macOS 10.15 or newer
203 | TouchView()
204 | .frame(maxWidth: .infinity, maxHeight: .infinity)
205 | .background(.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 |
207 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:208:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
206 |
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | .background(.white)
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:209:26: error: 'white' is only available in macOS 10.15 or newer
207 | TouchView()
208 | .frame(maxWidth: .infinity, maxHeight: .infinity)
209 | .background(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:6: error: 'Previewable()' is only available in macOS 14.0 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:214:19: error: 'State' is only available in macOS 10.15 or newer
212 |
213 | #Preview("List") {
214 | @Previewable @State var f = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 |
216 | List {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:213:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
211 | }
212 |
213 | #Preview("List") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'List' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:5: error: 'init(content:)' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'Button' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:217:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
215 |
216 | List {
217 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Button("Hello") {}
219 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'Button' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:218:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
216 | List {
217 | Button("Hello") {}
218 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | Button("Hello") {}
220 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'Button' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:219:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
217 | Button("Hello") {}
218 | Button("Hello") {}
219 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 |
221 | Slider(value: $f)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'Slider' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:221:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
219 | Button("Hello") {}
220 |
221 | Slider(value: $f)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:216:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
214 | @Previewable @State var f = 0.5
215 |
216 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Button("Hello") {}
218 | Button("Hello") {}
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:226:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
224 | }
225 |
226 | #Preview("Button") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
227 | Button("Hello") {}
228 | .visualizeTouches()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'Button' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:5: error: 'init(_:action:)' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:227:12: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
225 |
226 | #Preview("Button") {
227 | Button("Hello") {}
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .visualizeTouches()
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:228:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
226 | #Preview("Button") {
227 | Button("Hello") {}
228 | .visualizeTouches()
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }
230 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:24:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:24:9: error: 'modifier' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
21 | /// - Parameter isEnabled: If `true`, touches on this view are visualized.
22 | /// - Returns: A view that visualizes touches.
23 | func visualizeTouches(_ isEnabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | modifier(TouchVisualizer(isEnabled: isEnabled))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:44:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:44:9: error: 'modifier' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | /// Conditionally visualizes touches on the view.
:
41 | ///
42 | /// - Returns: A view that visualizes all touches.
43 | func visualizeTouches() -> some View {
| `- note: add @available attribute to enclosing instance method
44 | modifier(AutoVisualizer())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:60:30: error: cannot find 'UIScreen' in scope
58 | .visualizeTouches(isCaptured)
59 | .onAppear {
60 | isCaptured = UIScreen.main.isCaptured
| `- error: cannot find 'UIScreen' in scope
61 |
62 | cancellable = NotificationCenter.default
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:63:37: error: cannot find 'UIScreen' in scope
61 |
62 | cancellable = NotificationCenter.default
63 | .publisher(for: UIScreen.capturedDidChangeNotification)
| `- error: cannot find 'UIScreen' in scope
64 | .sink { notification in
65 | guard let screen = notification.object as? UIScreen else {
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:92:14: error: 'gesture' is unavailable in macOS
90 | func body(content: Content) -> some View {
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
| `- error: 'gesture' is unavailable in macOS
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
SwiftUI.View:7:29: note: 'gesture' has been explicitly marked unavailable here
5 | @available(visionOS, unavailable)
6 | extension View {
7 | nonisolated public func gesture(_ representable: some UIGestureRecognizerRepresentable) -> some View
| `- note: 'gesture' has been explicitly marked unavailable here
8 |
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:93:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | ForEach(isEnabled ? touches : []) { touch in
95 | TouchView()
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:94:17: error: 'ForEach' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | TouchView()
96 | .position(touch.coordinates)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:94:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
93 | .overlay {
94 | ForEach(isEnabled ? touches : []) { touch in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | TouchView()
96 | .position(touch.coordinates)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:96:26: error: 'position' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
94 | ForEach(isEnabled ? touches : []) { touch in
95 | TouchView()
96 | .position(touch.coordinates)
| |- error: 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:98:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
96 | .position(touch.coordinates)
97 | }
98 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
99 | .allowsHitTesting(false)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:99:18: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
77 | }
78 |
79 | private struct TouchVisualizer: ViewModifier {
| `- note: add @available attribute to enclosing struct
80 | struct Touch: Identifiable {
81 | var id: Int
:
88 | var isEnabled: Bool
89 |
90 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | content
92 | .gesture(TouchVisualizerGesture(isEnabled: isEnabled, touches: $touches))
:
97 | }
98 | .accessibilityHidden(true)
99 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:115:26: error: cannot convert value of type 'any KeyPath<EnvironmentValues, ColorScheme> & Sendable' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
113 | Circle().strokeBorder(.regularMaterial, lineWidth: 2)
114 | }
115 | .environment(\.colorScheme, .light)
| `- error: cannot convert value of type 'any KeyPath<EnvironmentValues, ColorScheme> & Sendable' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
116 | }
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:115:42: error: cannot infer contextual base in reference to member 'light'
113 | Circle().strokeBorder(.regularMaterial, lineWidth: 2)
114 | }
115 | .environment(\.colorScheme, .light)
| `- error: cannot infer contextual base in reference to member 'light'
116 | }
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:124:13: error: 'super' members cannot be referenced in a root class
122 |
123 | override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
124 | super.touchesBegan(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
125 |
126 | self.touches += touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:129:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
127 |
128 | if self.touches >= 0 {
129 | self.state = .changed
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:129:31: error: cannot infer contextual base in reference to member 'changed'
127 |
128 | if self.touches >= 0 {
129 | self.state = .changed
| `- error: cannot infer contextual base in reference to member 'changed'
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:135:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
134 | if self.touches >= 0 {
135 | self.state = .changed
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
136 | }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:135:31: error: cannot infer contextual base in reference to member 'changed'
133 | override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent) {
134 | if self.touches >= 0 {
135 | self.state = .changed
| `- error: cannot infer contextual base in reference to member 'changed'
136 | }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:140:13: error: 'super' members cannot be referenced in a root class
138 |
139 | override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
140 | super.touchesEnded(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
141 |
142 | self.touches -= touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:145:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
143 |
144 | if self.touches == 0 {
145 | self.state = .ended
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:145:31: error: cannot infer contextual base in reference to member 'ended'
143 |
144 | if self.touches == 0 {
145 | self.state = .ended
| `- error: cannot infer contextual base in reference to member 'ended'
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:150:13: error: 'super' members cannot be referenced in a root class
148 |
149 | override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
150 | super.touchesCancelled(touches, with: event)
| `- error: 'super' members cannot be referenced in a root class
151 |
152 | self.touches -= touches.count
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:155:22: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
153 |
154 | if self.touches == 0 {
155 | self.state = .cancelled
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'state'
156 | }
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:155:31: error: cannot infer contextual base in reference to member 'cancelled'
153 |
154 | if self.touches == 0 {
155 | self.state = .cancelled
| `- error: cannot infer contextual base in reference to member 'cancelled'
156 | }
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:176:11: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'cancelsTouchesInView'
174 | func makeUIGestureRecognizer(context: Context) -> UIGestureRecognizer {
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'cancelsTouchesInView'
177 | g.delegate = context.coordinator
178 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:177:11: error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'delegate'
175 | let g = Recognizer()
176 | g.cancelsTouchesInView = false
177 | g.delegate = context.coordinator
| `- error: value of type 'TouchVisualizerGesture.Recognizer' has no member 'delegate'
178 |
179 | return g
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:186:71: error: 'nil' requires a contextual type
184 | case .began where isEnabled, .changed where isEnabled:
185 | touches = (0 ..< recognizer.numberOfTouches).map { i in
186 | let globalPoint = recognizer.location(ofTouch: i, in: nil)
| `- error: 'nil' requires a contextual type
187 | let point = context.converter.convert(globalPoint: globalPoint)
188 |
/Users/admin/builder/spi-builder-workspace/Sources/VisualizeTouches/TouchVisualization.swift:192:13: error: setter for 'touches' is only available in macOS 10.15 or newer
117 | }
118 |
119 | private struct TouchVisualizerGesture: UIGestureRecognizerRepresentable {
| `- note: add @available attribute to enclosing struct
120 | final class Recognizer: UIGestureRecognizer {
121 | var touches = 0
:
180 | }
181 |
182 | func handleUIGestureRecognizerAction(_ recognizer: Self.UIGestureRecognizerType, context: Self.Context) {
| `- note: add @available attribute to enclosing instance method
183 | switch recognizer.state {
184 | case .began where isEnabled, .changed where isEnabled:
:
190 | }
191 | default:
192 | touches = []
| |- error: setter for 'touches' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
193 | }
194 | }
BUILD FAILURE 6.0 macosSpm