Build Information
Failed to build SwiftGraphics, reference 0.3.1 (93fc37
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 13:29:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
Revision (git rev-parse @):
93fc37757dc876f8f84ba4f4622964b5e7dbdd8b
SUCCESS checkout https://github.com/emorydunn/SwiftGraphics.git at 0.3.1
========================================
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": "swiftgraphics",
"name": "SwiftGraphics",
"url": "https://github.com/emorydunn/SwiftGraphics.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGraphics",
"dependencies": [
]
}
]
}
Fetching https://github.com/emorydunn/SwiftGraphics.git
[1/2549] Fetching swiftgraphics
Fetched https://github.com/emorydunn/SwiftGraphics.git from cache (1.44s)
Creating working copy for https://github.com/emorydunn/SwiftGraphics.git
Working copy of https://github.com/emorydunn/SwiftGraphics.git resolved at 0.3.1 (93fc377)
warning: '.resolve-product-dependencies': dependency 'swiftgraphics' 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/emorydunn/SwiftGraphics.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/36] Emitting module SwiftGraphics
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:35:11: error: cannot find type 'CGContext' in scope
33 | }
34 |
35 | extension CGContext: DrawingContext {
| `- error: cannot find type 'CGContext' in scope
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Math/Perlin.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// Implemented from p5.js
15 | public class PerlinGenerator {
| `- note: class 'PerlinGenerator' does not conform to the 'Sendable' protocol
16 |
17 | /// A shared generator
18 | public static let shared = PerlinGenerator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | let yWrapB = 4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Ray Tracing/DirectionalEmitter.swift:67:39: error: cannot find type 'CGContext' in scope
65 | /// Draws a representation of the emitter suitable for debugging.
66 | /// - Parameter context: Context in which to draw
67 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
68 | let ray = Ray(origin: origin.copy(), direction: direction.copy())
69 | ray.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:50:39: error: cannot find type 'CGContext' in scope
48 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
49 | /// - Parameter context: Context in which to draw
50 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
51 | draw(in: context)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:191:39: error: cannot find type 'CGContext' in scope
189 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
190 | /// - Parameter context: Context in which to draw
191 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
192 | let normal = self.normal()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:173:37: error: cannot find type 'CGContext' in scope
171 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
172 | /// - Parameter context: Context in which to draw
173 | open func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
[4/39] Compiling SwiftGraphics BoundingBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BoundingBox.swift:48:29: error: cannot find type 'CGContext' in scope
46 | contextWidth = Double(context.width)
47 | contextHeight = Double(context.height)
48 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
49 | contextWidth = Double(context.width) / 2
50 | contextHeight = Double(context.height) / 2
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:50:39: error: cannot find type 'CGContext' in scope
48 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
49 | /// - Parameter context: Context in which to draw
50 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
51 | draw(in: context)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
[5/39] Compiling SwiftGraphics Circle+Drawable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BoundingBox.swift:48:29: error: cannot find type 'CGContext' in scope
46 | contextWidth = Double(context.width)
47 | contextHeight = Double(context.height)
48 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
49 | contextWidth = Double(context.width) / 2
50 | contextHeight = Double(context.height) / 2
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:50:39: error: cannot find type 'CGContext' in scope
48 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
49 | /// - Parameter context: Context in which to draw
50 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
51 | draw(in: context)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
[6/39] Compiling SwiftGraphics Circle+RayTracable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BoundingBox.swift:48:29: error: cannot find type 'CGContext' in scope
46 | contextWidth = Double(context.width)
47 | contextHeight = Double(context.height)
48 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
49 | contextWidth = Double(context.width) / 2
50 | contextHeight = Double(context.height) / 2
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:50:39: error: cannot find type 'CGContext' in scope
48 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
49 | /// - Parameter context: Context in which to draw
50 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
51 | draw(in: context)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
[7/39] Compiling SwiftGraphics Rectangle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:173:37: error: cannot find type 'CGContext' in scope
171 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
172 | /// - Parameter context: Context in which to draw
173 | open func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:175:23: error: cannot find 'CGColor' in scope
173 | open func debugDraw(in context: CGContext) {
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:176:23: error: cannot find 'CGColor' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:177:23: error: cannot find 'CGColor' in scope
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
179 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:178:23: error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
179 |
180 | context.setFillColor(tlColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
[8/39] Compiling SwiftGraphics Size.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:173:37: error: cannot find type 'CGContext' in scope
171 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
172 | /// - Parameter context: Context in which to draw
173 | open func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:175:23: error: cannot find 'CGColor' in scope
173 | open func debugDraw(in context: CGContext) {
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:176:23: error: cannot find 'CGColor' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:177:23: error: cannot find 'CGColor' in scope
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
179 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:178:23: error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
179 |
180 | context.setFillColor(tlColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
[9/39] Compiling SwiftGraphics Vector.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:173:37: error: cannot find type 'CGContext' in scope
171 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
172 | /// - Parameter context: Context in which to draw
173 | open func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:175:23: error: cannot find 'CGColor' in scope
173 | open func debugDraw(in context: CGContext) {
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:176:23: error: cannot find 'CGColor' in scope
174 |
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:177:23: error: cannot find 'CGColor' in scope
175 | let tlColor = CGColor(red: 255 / 255, green: 159 / 255, blue: 82 / 255, alpha: 1)
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
179 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:178:23: error: cannot find 'CGColor' in scope
176 | let trColor = CGColor(red: 82 / 255, green: 243 / 255, blue: 255 / 255, alpha: 1)
177 | let brColor = CGColor(red: 163 / 255, green: 82 / 255, blue: 255 / 255, alpha: 1)
178 | let blColor = CGColor(red: 255 / 255, green: 82 / 255, blue: 82 / 255, alpha: 1)
| `- error: cannot find 'CGColor' in scope
179 |
180 | context.setFillColor(tlColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
[10/39] Compiling SwiftGraphics DefaultIntersections.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:134:32: error: argument passed to call that takes no arguments
132 | dirPoint += origin
133 |
134 | dirPoint.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
135 | }
136 |
[11/39] Compiling SwiftGraphics Intersectable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:134:32: error: argument passed to call that takes no arguments
132 | dirPoint += origin
133 |
134 | dirPoint.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
135 | }
136 |
[12/39] Compiling SwiftGraphics RayTracable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:134:32: error: argument passed to call that takes no arguments
132 | dirPoint += origin
133 |
134 | dirPoint.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
135 | }
136 |
[13/39] Compiling SwiftGraphics Polygon.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:134:32: error: argument passed to call that takes no arguments
132 | dirPoint += origin
133 |
134 | dirPoint.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
135 | }
136 |
[14/39] Compiling SwiftGraphics Perlin.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Math/Perlin.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// Implemented from p5.js
15 | public class PerlinGenerator {
| `- note: class 'PerlinGenerator' does not conform to the 'Sendable' protocol
16 |
17 | /// A shared generator
18 | public static let shared = PerlinGenerator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | let yWrapB = 4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Ray Tracing/DirectionalEmitter.swift:67:39: error: cannot find type 'CGContext' in scope
65 | /// Draws a representation of the emitter suitable for debugging.
66 | /// - Parameter context: Context in which to draw
67 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
68 | let ray = Ray(origin: origin.copy(), direction: direction.copy())
69 | ray.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
[15/39] Compiling SwiftGraphics CircleEmitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Math/Perlin.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// Implemented from p5.js
15 | public class PerlinGenerator {
| `- note: class 'PerlinGenerator' does not conform to the 'Sendable' protocol
16 |
17 | /// A shared generator
18 | public static let shared = PerlinGenerator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | let yWrapB = 4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Ray Tracing/DirectionalEmitter.swift:67:39: error: cannot find type 'CGContext' in scope
65 | /// Draws a representation of the emitter suitable for debugging.
66 | /// - Parameter context: Context in which to draw
67 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
68 | let ray = Ray(origin: origin.copy(), direction: direction.copy())
69 | ray.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
[16/39] Compiling SwiftGraphics DirectionalEmitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Math/Perlin.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// Implemented from p5.js
15 | public class PerlinGenerator {
| `- note: class 'PerlinGenerator' does not conform to the 'Sendable' protocol
16 |
17 | /// A shared generator
18 | public static let shared = PerlinGenerator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | let yWrapB = 4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Ray Tracing/DirectionalEmitter.swift:67:39: error: cannot find type 'CGContext' in scope
65 | /// Draws a representation of the emitter suitable for debugging.
66 | /// - Parameter context: Context in which to draw
67 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
68 | let ray = Ray(origin: origin.copy(), direction: direction.copy())
69 | ray.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
[17/39] Compiling SwiftGraphics Emitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Math/Perlin.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// Implemented from p5.js
15 | public class PerlinGenerator {
| `- note: class 'PerlinGenerator' does not conform to the 'Sendable' protocol
16 |
17 | /// A shared generator
18 | public static let shared = PerlinGenerator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PerlinGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | let yWrapB = 4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Circle/Circle+Drawable.swift:33:34: error: cannot find type 'CGContext' in scope
31 | /// Draw the receiver in the specified context
32 | /// - Parameter context: Context in which to draw
33 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
34 |
35 | context.saveGState()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Ray Tracing/DirectionalEmitter.swift:67:39: error: cannot find type 'CGContext' in scope
65 | /// Draws a representation of the emitter suitable for debugging.
66 | /// - Parameter context: Context in which to draw
67 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
68 | let ray = Ray(origin: origin.copy(), direction: direction.copy())
69 | ray.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Intersectable/RayTracable.swift:126:39: error: cannot find type 'CGContext' in scope
124 | /// Draws a representation of the emitter suitable for debugging.
125 | /// - Parameter context: Context in which to draw
126 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
127 | // super.debugDraw(in: context)
128 | Circle(center: origin, radius: 20).draw()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:304:34: error: cannot find type 'CGContext' in scope
302 | /// Draw the receiver in the specified context
303 | /// - Parameter context: Context in which to draw
304 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
305 | Rectangle(x: x, y: y, width: 1, height: 1).draw(in: context)
306 | }
[18/39] Compiling SwiftGraphics SVGContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:48:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | public convenience init(sketch: SketchView) {
47 | self.init(
48 | width: Int(sketch.bounds.width),
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | height: Int(sketch.bounds.height)
50 | )
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:49:32: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | self.init(
48 | width: Int(sketch.bounds.width),
49 | height: Int(sketch.bounds.height)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | )
51 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
[19/39] Compiling SwiftGraphics SVGDrawable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:48:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | public convenience init(sketch: SketchView) {
47 | self.init(
48 | width: Int(sketch.bounds.width),
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | height: Int(sketch.bounds.height)
50 | )
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:49:32: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | self.init(
48 | width: Int(sketch.bounds.width),
49 | height: Int(sketch.bounds.height)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | )
51 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
[20/39] Compiling SwiftGraphics Angles.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:48:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | public convenience init(sketch: SketchView) {
47 | self.init(
48 | width: Int(sketch.bounds.width),
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | height: Int(sketch.bounds.height)
50 | )
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:49:32: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | self.init(
48 | width: Int(sketch.bounds.width),
49 | height: Int(sketch.bounds.height)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | )
51 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
[21/39] Compiling SwiftGraphics Array.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:48:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | public convenience init(sketch: SketchView) {
47 | self.init(
48 | width: Int(sketch.bounds.width),
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | height: Int(sketch.bounds.height)
50 | )
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/SVG Drawing/SVGContext.swift:49:32: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | self.init(
48 | width: Int(sketch.bounds.width),
49 | height: Int(sketch.bounds.height)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | )
51 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
[22/39] Compiling SwiftGraphics Clamped.swift
[23/39] Compiling SwiftGraphics Double.swift
[24/39] Compiling SwiftGraphics String.swift
[25/39] Compiling SwiftGraphics XMLElement.swift
[26/39] Compiling SwiftGraphics Fresnel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:138:29: error: argument passed to call that takes no arguments
136 | /// - Parameter context: Context in which to draw
137 | public func debugDraw(in context: CGContext) {
138 | start.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:140:36: error: argument passed to call that takes no arguments
138 | start.debugDraw(in: context)
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[27/39] Compiling SwiftGraphics LinearEmitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:138:29: error: argument passed to call that takes no arguments
136 | /// - Parameter context: Context in which to draw
137 | public func debugDraw(in context: CGContext) {
138 | start.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:140:36: error: argument passed to call that takes no arguments
138 | start.debugDraw(in: context)
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[28/39] Compiling SwiftGraphics BezierPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:138:29: error: argument passed to call that takes no arguments
136 | /// - Parameter context: Context in which to draw
137 | public func debugDraw(in context: CGContext) {
138 | start.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/BezierPath.swift:140:36: error: argument passed to call that takes no arguments
138 | start.debugDraw(in: context)
139 | points.forEach {
140 | $0.point.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[29/39] Compiling SwiftGraphics BlendMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:35:29: error: cannot find type 'CGContext' in scope
33 | case is SVGContext:
34 | break
35 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
36 | debugDraw(in: context)
37 | default:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:36:27: error: argument passed to call that takes no arguments
34 | break
35 | case let context as CGContext:
36 | debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
37 | default:
38 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:35:11: error: cannot find type 'CGContext' in scope
33 | }
34 |
35 | extension CGContext: DrawingContext {
| `- error: cannot find type 'CGContext' in scope
36 |
37 | }
[30/39] Compiling SwiftGraphics CGDrawable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:35:29: error: cannot find type 'CGContext' in scope
33 | case is SVGContext:
34 | break
35 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
36 | debugDraw(in: context)
37 | default:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:36:27: error: argument passed to call that takes no arguments
34 | break
35 | case let context as CGContext:
36 | debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
37 | default:
38 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:35:11: error: cannot find type 'CGContext' in scope
33 | }
34 |
35 | extension CGContext: DrawingContext {
| `- error: cannot find type 'CGContext' in scope
36 |
37 | }
[31/39] Compiling SwiftGraphics Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:35:29: error: cannot find type 'CGContext' in scope
33 | case is SVGContext:
34 | break
35 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
36 | debugDraw(in: context)
37 | default:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:36:27: error: argument passed to call that takes no arguments
34 | break
35 | case let context as CGContext:
36 | debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
37 | default:
38 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:35:11: error: cannot find type 'CGContext' in scope
33 | }
34 |
35 | extension CGContext: DrawingContext {
| `- error: cannot find type 'CGContext' in scope
36 |
37 | }
[32/39] Compiling SwiftGraphics DrawingContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:35:29: error: cannot find type 'CGContext' in scope
33 | case is SVGContext:
34 | break
35 | case let context as CGContext:
| `- error: cannot find type 'CGContext' in scope
36 | debugDraw(in: context)
37 | default:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:36:27: error: argument passed to call that takes no arguments
34 | break
35 | case let context as CGContext:
36 | debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
37 | default:
38 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:26:23: warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Color blending mode
26 | public static var blendMode: BlendMode = .normal
| |- warning: static property 'blendMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blendMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blendMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:35:11: error: cannot find type 'CGContext' in scope
33 | }
34 |
35 | extension CGContext: DrawingContext {
| `- error: cannot find type 'CGContext' in scope
36 |
37 | }
[33/39] Compiling SwiftGraphics Circle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:191:39: error: cannot find type 'CGContext' in scope
189 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
190 | /// - Parameter context: Context in which to draw
191 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
192 | let normal = self.normal()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:194:33: error: cannot infer contextual base in reference to member 'init'
192 | let normal = self.normal()
193 |
194 | context.setStrokeColor(.init(red: 255, green: 0, blue: 128, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
195 | Line(
196 | center.x,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:202:33: error: cannot infer contextual base in reference to member 'init'
200 | ).draw()
201 |
202 | context.setStrokeColor(.init(gray: 0.5, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
203 | self.draw(in: context)
204 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Path.swift:106:30: error: argument passed to call that takes no arguments
104 | public func debugDraw(in context: CGContext) {
105 | points.forEach {
106 | $0.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[34/39] Compiling SwiftGraphics Line.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:191:39: error: cannot find type 'CGContext' in scope
189 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
190 | /// - Parameter context: Context in which to draw
191 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
192 | let normal = self.normal()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:194:33: error: cannot infer contextual base in reference to member 'init'
192 | let normal = self.normal()
193 |
194 | context.setStrokeColor(.init(red: 255, green: 0, blue: 128, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
195 | Line(
196 | center.x,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:202:33: error: cannot infer contextual base in reference to member 'init'
200 | ).draw()
201 |
202 | context.setStrokeColor(.init(gray: 0.5, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
203 | self.draw(in: context)
204 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Path.swift:106:30: error: argument passed to call that takes no arguments
104 | public func debugDraw(in context: CGContext) {
105 | points.forEach {
106 | $0.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[35/39] Compiling SwiftGraphics Path.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:182:34: error: cannot find type 'CGContext' in scope
180 | /// Draw the receiver in the specified context
181 | /// - Parameter context: Context in which to draw
182 | public func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
183 | context.setStrokeColor(SwiftGraphicsContext.strokeColor.toCGColor())
184 | context.setFillColor(SwiftGraphicsContext.fillColor.toCGColor())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:191:39: error: cannot find type 'CGContext' in scope
189 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
190 | /// - Parameter context: Context in which to draw
191 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
192 | let normal = self.normal()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/Color.swift:119:32: error: cannot find type 'CGColor' in scope
117 |
118 | /// Createa CGColor
119 | public func toCGColor() -> CGColor {
| `- error: cannot find type 'CGColor' in scope
120 | return CGColor(
121 | red: CGFloat(red),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:194:33: error: cannot infer contextual base in reference to member 'init'
192 | let normal = self.normal()
193 |
194 | context.setStrokeColor(.init(red: 255, green: 0, blue: 128, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
195 | Line(
196 | center.x,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Line.swift:202:33: error: cannot infer contextual base in reference to member 'init'
200 | ).draw()
201 |
202 | context.setStrokeColor(.init(gray: 0.5, alpha: 1))
| `- error: cannot infer contextual base in reference to member 'init'
203 | self.draw(in: context)
204 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:23:23: warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Weight of the outline of the shape
23 | public static var strokeWeight: Double = 1
| |- warning: static property 'strokeWeight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeWeight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeWeight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Color blending mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Vector.swift:310:39: error: cannot find type 'CGContext' in scope
308 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
309 | /// - Parameter context: Context in which to draw
310 | public func debugDraw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
311 | Circle(center: self, radius: 5).draw(in: context)
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Path.swift:106:30: error: argument passed to call that takes no arguments
104 | public func debugDraw(in context: CGContext) {
105 | points.forEach {
106 | $0.debugDraw(in: context)
| `- error: argument passed to call that takes no arguments
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
[36/39] Compiling SwiftGraphics Shape.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Shape.swift:31:45: error: argument passed to call that takes no arguments
29 | (self as? SVGDrawable)?.draw(in: context)
30 | case let context as CGContext:
31 | (self as? CGDrawable)?.draw(in: context)
| `- error: argument passed to call that takes no arguments
32 | default:
33 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:35:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
33 |
34 | // Set the context to CoreGraphics
35 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
36 |
37 | let startTime = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:51:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
49 |
50 | // Set the context to CoreGraphics
51 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
52 |
53 | sketch.draw()
[37/39] Compiling SwiftGraphics Sketch Protcols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Shape.swift:31:45: error: argument passed to call that takes no arguments
29 | (self as? SVGDrawable)?.draw(in: context)
30 | case let context as CGContext:
31 | (self as? CGDrawable)?.draw(in: context)
| `- error: argument passed to call that takes no arguments
32 | default:
33 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:35:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
33 |
34 | // Set the context to CoreGraphics
35 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
36 |
37 | let startTime = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:51:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
49 |
50 | // Set the context to CoreGraphics
51 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
52 |
53 | sketch.draw()
[38/39] Compiling SwiftGraphics Sketch.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Shape.swift:31:45: error: argument passed to call that takes no arguments
29 | (self as? SVGDrawable)?.draw(in: context)
30 | case let context as CGContext:
31 | (self as? CGDrawable)?.draw(in: context)
| `- error: argument passed to call that takes no arguments
32 | default:
33 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:35:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
33 |
34 | // Set the context to CoreGraphics
35 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
36 |
37 | let startTime = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:51:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
49 |
50 | // Set the context to CoreGraphics
51 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
52 |
53 | sketch.draw()
[39/39] Compiling SwiftGraphics SketchView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:15:27: error: cannot find type 'CGContext' in scope
13 | /// Draw the receiver in the specified context
14 | /// - Parameter context: Context in which to draw
15 | func draw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
16 |
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/Shape.swift:31:45: error: argument passed to call that takes no arguments
29 | (self as? SVGDrawable)?.draw(in: context)
30 | case let context as CGContext:
31 | (self as? CGDrawable)?.draw(in: context)
| `- error: argument passed to call that takes no arguments
32 | default:
33 | break
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/CGDrawable.swift:19:32: error: cannot find type 'CGContext' in scope
17 | /// Draw a representation of the receiver meant for debugging the shape in the specified context
18 | /// - Parameter context: Context in which to draw
19 | func debugDraw(in context: CGContext)
| `- error: cannot find type 'CGContext' in scope
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:14:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Returns the current `DrawingContext`, if any
14 | public static var current: DrawingContext?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Color of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Shapes/Rectangle.swift:161:32: error: cannot find type 'CGContext' in scope
159 | /// Draw the receiver in the specified context
160 | /// - Parameter context: Context in which to draw
161 | open func draw(in context: CGContext) {
| `- error: cannot find type 'CGContext' in scope
162 | let rect = CGRect(x: x, y: y, width: width, height: height)
163 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:20:23: warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Color of the fill of the shape
20 | public static var fillColor: Color = .clear
| |- warning: static property 'fillColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fillColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fillColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Weight of the outline of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Drawing/DrawingContext.swift:17:23: warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Color of the outline of the shape
17 | public static var strokeColor: Color = .black
| |- warning: static property 'strokeColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strokeColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strokeColor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Color of the fill of the shape
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:35:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
33 |
34 | // Set the context to CoreGraphics
35 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
36 |
37 | let startTime = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraphics/Base Protocols/SketchView.swift:51:67: error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
49 |
50 | // Set the context to CoreGraphics
51 | SwiftGraphicsContext.current = NSGraphicsContext.current?.cgContext
| `- error: cannot assign value of type 'CGContext?' to type '(any DrawingContext)?'
52 |
53 | sketch.draw()
BUILD FAILURE 6.0 macosSpm