Build Information
Failed to build SwiftyHaru, reference 0.3.0 (eee249
), with Swift 6.1 for Android on 27 May 2025 09:27:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[112/112] Compiling SwiftyHaru Grid.Labels.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/34] Compiling SwiftyHaru Grid.swift
[3/34] Compiling SwiftyHaru PDFDateFormatter.swift
[4/34] Compiling SwiftyHaru PDFDocument.CompressionMode.swift
[5/34] Compiling SwiftyHaru PDFDocument.EncryptionMode.swift
[6/34] Compiling SwiftyHaru Grid.Lines.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[7/34] Compiling SwiftyHaru Grid.MajorLineParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[8/34] Compiling SwiftyHaru Grid.MinorLineParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[9/34] Compiling SwiftyHaru Grid.SerifParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[10/34] Compiling SwiftyHaru Grid.Serifs.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/38] Emitting module SwiftyHaru
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[12/38] Compiling SwiftyHaru DashStyle.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[13/38] Compiling SwiftyHaru Drawable.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[14/38] Compiling SwiftyHaru Geometry.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[15/38] Compiling SwiftyHaru LineCap.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[16/38] Compiling SwiftyHaru LineJoin.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[17/38] Compiling SwiftyHaru DrawingContext.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:301:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
299 | set {
300 | switch newValue._wrapped {
301 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
302 | HPDF_Page_SetCMYKStroke(_page,
303 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:307:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
305 | color.yellow,
306 | color.black)
307 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
308 | HPDF_Page_SetRGBStroke(_page,
309 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:334:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
332 | set {
333 | switch newValue._wrapped {
334 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
335 | HPDF_Page_SetCMYKFill(_page,
336 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:340:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
338 | color.yellow,
339 | color.black)
340 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
341 | HPDF_Page_SetRGBFill(_page,
342 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
64 | get {
65 | switch _wrapped {
66 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
67 | return color.red
68 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:68:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
66 | case .rgb(let color):
67 | return color.red
68 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
69 | return (1 - color.cyan) * (1 - color.black)
70 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:76:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
74 | set {
75 | switch _wrapped {
76 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
77 | _wrapped = .rgb(red: newValue, green: color.green, blue: color.blue)
78 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:95:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
93 | get {
94 | switch _wrapped {
95 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
96 | return color.green
97 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:97:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
95 | case .rgb(let color):
96 | return color.green
97 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
98 | return (1 - color.magenta) * (1 - color.black)
99 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:105:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
103 | set {
104 | switch _wrapped {
105 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
106 | _wrapped = .rgb(red: color.red, green: newValue, blue: color.blue)
107 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:124:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
122 | get {
123 | switch _wrapped {
124 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
125 | return color.blue
126 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:126:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
124 | case .rgb(let color):
125 | return color.blue
126 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
127 | return (1 - color.yellow) * (1 - color.black)
128 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:134:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
132 | set {
133 | switch _wrapped {
134 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
135 | _wrapped = .rgb(red: color.red, green: color.green, blue: newValue)
136 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:153:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
151 | get {
152 | switch _wrapped {
153 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
154 | return color.cyan
155 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:155:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
153 | case .cmyk(let color):
154 | return color.cyan
155 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
156 | return black < 1 ? (1 - color.red - black) / (1 - black) : 0
157 | case .gray:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:163:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
161 | set {
162 | switch _wrapped {
163 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
164 | _wrapped = .cmyk(cyan: newValue,
165 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:183:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
181 | get {
182 | switch _wrapped {
183 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
184 | return color.magenta
185 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:185:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
183 | case .cmyk(let color):
184 | return color.magenta
185 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
186 | return black < 1 ? (1 - color.green - black) / (1 - black) : 0
187 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:193:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
191 | set {
192 | switch _wrapped {
193 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
194 | _wrapped = .cmyk(cyan: color.cyan,
195 | magenta: newValue,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:213:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
211 | get {
212 | switch _wrapped {
213 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
214 | return color.yellow
215 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:215:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
213 | case .cmyk(let color):
214 | return color.yellow
215 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
216 | return black < 1 ? (1 - color.blue - black) / (1 - black) : 0
217 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:223:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
221 | set {
222 | switch _wrapped {
223 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
224 | _wrapped = .cmyk(cyan: color.cyan,
225 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:244:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
242 | get {
243 | switch _wrapped {
244 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
245 | return color.black
246 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:246:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
244 | case .cmyk(let color):
245 | return color.black
246 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
247 | return 1 - max(color.red, color.green, color.blue)
248 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:254:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
252 | set {
253 | switch _wrapped {
254 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[18/38] Compiling SwiftyHaru Encoding.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:301:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
299 | set {
300 | switch newValue._wrapped {
301 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
302 | HPDF_Page_SetCMYKStroke(_page,
303 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:307:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
305 | color.yellow,
306 | color.black)
307 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
308 | HPDF_Page_SetRGBStroke(_page,
309 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:334:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
332 | set {
333 | switch newValue._wrapped {
334 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
335 | HPDF_Page_SetCMYKFill(_page,
336 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:340:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
338 | color.yellow,
339 | color.black)
340 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
341 | HPDF_Page_SetRGBFill(_page,
342 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
64 | get {
65 | switch _wrapped {
66 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
67 | return color.red
68 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:68:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
66 | case .rgb(let color):
67 | return color.red
68 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
69 | return (1 - color.cyan) * (1 - color.black)
70 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:76:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
74 | set {
75 | switch _wrapped {
76 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
77 | _wrapped = .rgb(red: newValue, green: color.green, blue: color.blue)
78 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:95:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
93 | get {
94 | switch _wrapped {
95 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
96 | return color.green
97 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:97:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
95 | case .rgb(let color):
96 | return color.green
97 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
98 | return (1 - color.magenta) * (1 - color.black)
99 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:105:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
103 | set {
104 | switch _wrapped {
105 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
106 | _wrapped = .rgb(red: color.red, green: newValue, blue: color.blue)
107 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:124:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
122 | get {
123 | switch _wrapped {
124 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
125 | return color.blue
126 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:126:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
124 | case .rgb(let color):
125 | return color.blue
126 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
127 | return (1 - color.yellow) * (1 - color.black)
128 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:134:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
132 | set {
133 | switch _wrapped {
134 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
135 | _wrapped = .rgb(red: color.red, green: color.green, blue: newValue)
136 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:153:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
151 | get {
152 | switch _wrapped {
153 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
154 | return color.cyan
155 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:155:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
153 | case .cmyk(let color):
154 | return color.cyan
155 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
156 | return black < 1 ? (1 - color.red - black) / (1 - black) : 0
157 | case .gray:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:163:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
161 | set {
162 | switch _wrapped {
163 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
164 | _wrapped = .cmyk(cyan: newValue,
165 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:183:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
181 | get {
182 | switch _wrapped {
183 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
184 | return color.magenta
185 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:185:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
183 | case .cmyk(let color):
184 | return color.magenta
185 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
186 | return black < 1 ? (1 - color.green - black) / (1 - black) : 0
187 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:193:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
191 | set {
192 | switch _wrapped {
193 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
194 | _wrapped = .cmyk(cyan: color.cyan,
195 | magenta: newValue,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:213:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
211 | get {
212 | switch _wrapped {
213 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
214 | return color.yellow
215 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:215:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
213 | case .cmyk(let color):
214 | return color.yellow
215 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
216 | return black < 1 ? (1 - color.blue - black) / (1 - black) : 0
217 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:223:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
221 | set {
222 | switch _wrapped {
223 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
224 | _wrapped = .cmyk(cyan: color.cyan,
225 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:244:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
242 | get {
243 | switch _wrapped {
244 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
245 | return color.black
246 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:246:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
244 | case .cmyk(let color):
245 | return color.black
246 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
247 | return 1 - max(color.red, color.green, color.blue)
248 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:254:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
252 | set {
253 | switch _wrapped {
254 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[19/38] Compiling SwiftyHaru Font.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:301:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
299 | set {
300 | switch newValue._wrapped {
301 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
302 | HPDF_Page_SetCMYKStroke(_page,
303 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:307:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
305 | color.yellow,
306 | color.black)
307 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
308 | HPDF_Page_SetRGBStroke(_page,
309 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:334:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
332 | set {
333 | switch newValue._wrapped {
334 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
335 | HPDF_Page_SetCMYKFill(_page,
336 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:340:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
338 | color.yellow,
339 | color.black)
340 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
341 | HPDF_Page_SetRGBFill(_page,
342 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
64 | get {
65 | switch _wrapped {
66 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
67 | return color.red
68 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:68:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
66 | case .rgb(let color):
67 | return color.red
68 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
69 | return (1 - color.cyan) * (1 - color.black)
70 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:76:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
74 | set {
75 | switch _wrapped {
76 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
77 | _wrapped = .rgb(red: newValue, green: color.green, blue: color.blue)
78 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:95:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
93 | get {
94 | switch _wrapped {
95 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
96 | return color.green
97 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:97:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
95 | case .rgb(let color):
96 | return color.green
97 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
98 | return (1 - color.magenta) * (1 - color.black)
99 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:105:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
103 | set {
104 | switch _wrapped {
105 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
106 | _wrapped = .rgb(red: color.red, green: newValue, blue: color.blue)
107 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:124:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
122 | get {
123 | switch _wrapped {
124 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
125 | return color.blue
126 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:126:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
124 | case .rgb(let color):
125 | return color.blue
126 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
127 | return (1 - color.yellow) * (1 - color.black)
128 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:134:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
132 | set {
133 | switch _wrapped {
134 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
135 | _wrapped = .rgb(red: color.red, green: color.green, blue: newValue)
136 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:153:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
151 | get {
152 | switch _wrapped {
153 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
154 | return color.cyan
155 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:155:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
153 | case .cmyk(let color):
154 | return color.cyan
155 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
156 | return black < 1 ? (1 - color.red - black) / (1 - black) : 0
157 | case .gray:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:163:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
161 | set {
162 | switch _wrapped {
163 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
164 | _wrapped = .cmyk(cyan: newValue,
165 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:183:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
181 | get {
182 | switch _wrapped {
183 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
184 | return color.magenta
185 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:185:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
183 | case .cmyk(let color):
184 | return color.magenta
185 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
186 | return black < 1 ? (1 - color.green - black) / (1 - black) : 0
187 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:193:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
191 | set {
192 | switch _wrapped {
193 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
194 | _wrapped = .cmyk(cyan: color.cyan,
195 | magenta: newValue,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:213:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
211 | get {
212 | switch _wrapped {
213 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
214 | return color.yellow
215 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:215:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
213 | case .cmyk(let color):
214 | return color.yellow
215 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
216 | return black < 1 ? (1 - color.blue - black) / (1 - black) : 0
217 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:223:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
221 | set {
222 | switch _wrapped {
223 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
224 | _wrapped = .cmyk(cyan: color.cyan,
225 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:244:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
242 | get {
243 | switch _wrapped {
244 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
245 | return color.black
246 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:246:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
244 | case .cmyk(let color):
245 | return color.black
246 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
247 | return 1 - max(color.red, color.green, color.blue)
248 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:254:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
252 | set {
253 | switch _wrapped {
254 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[20/38] Compiling SwiftyHaru AffineTransform.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:301:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
299 | set {
300 | switch newValue._wrapped {
301 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
302 | HPDF_Page_SetCMYKStroke(_page,
303 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:307:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
305 | color.yellow,
306 | color.black)
307 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
308 | HPDF_Page_SetRGBStroke(_page,
309 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:334:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
332 | set {
333 | switch newValue._wrapped {
334 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
335 | HPDF_Page_SetCMYKFill(_page,
336 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:340:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
338 | color.yellow,
339 | color.black)
340 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
341 | HPDF_Page_SetRGBFill(_page,
342 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
64 | get {
65 | switch _wrapped {
66 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
67 | return color.red
68 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:68:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
66 | case .rgb(let color):
67 | return color.red
68 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
69 | return (1 - color.cyan) * (1 - color.black)
70 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:76:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
74 | set {
75 | switch _wrapped {
76 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
77 | _wrapped = .rgb(red: newValue, green: color.green, blue: color.blue)
78 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:95:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
93 | get {
94 | switch _wrapped {
95 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
96 | return color.green
97 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:97:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
95 | case .rgb(let color):
96 | return color.green
97 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
98 | return (1 - color.magenta) * (1 - color.black)
99 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:105:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
103 | set {
104 | switch _wrapped {
105 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
106 | _wrapped = .rgb(red: color.red, green: newValue, blue: color.blue)
107 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:124:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
122 | get {
123 | switch _wrapped {
124 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
125 | return color.blue
126 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:126:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
124 | case .rgb(let color):
125 | return color.blue
126 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
127 | return (1 - color.yellow) * (1 - color.black)
128 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:134:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
132 | set {
133 | switch _wrapped {
134 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
135 | _wrapped = .rgb(red: color.red, green: color.green, blue: newValue)
136 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:153:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
151 | get {
152 | switch _wrapped {
153 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
154 | return color.cyan
155 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:155:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
153 | case .cmyk(let color):
154 | return color.cyan
155 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
156 | return black < 1 ? (1 - color.red - black) / (1 - black) : 0
157 | case .gray:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:163:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
161 | set {
162 | switch _wrapped {
163 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
164 | _wrapped = .cmyk(cyan: newValue,
165 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:183:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
181 | get {
182 | switch _wrapped {
183 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
184 | return color.magenta
185 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:185:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
183 | case .cmyk(let color):
184 | return color.magenta
185 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
186 | return black < 1 ? (1 - color.green - black) / (1 - black) : 0
187 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:193:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
191 | set {
192 | switch _wrapped {
193 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
194 | _wrapped = .cmyk(cyan: color.cyan,
195 | magenta: newValue,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:213:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
211 | get {
212 | switch _wrapped {
213 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
214 | return color.yellow
215 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:215:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
213 | case .cmyk(let color):
214 | return color.yellow
215 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
216 | return black < 1 ? (1 - color.blue - black) / (1 - black) : 0
217 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:223:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
221 | set {
222 | switch _wrapped {
223 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
224 | _wrapped = .cmyk(cyan: color.cyan,
225 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:244:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
242 | get {
243 | switch _wrapped {
244 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
245 | return color.black
246 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:246:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
244 | case .cmyk(let color):
245 | return color.black
246 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
247 | return 1 - max(color.red, color.green, color.blue)
248 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:254:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
252 | set {
253 | switch _wrapped {
254 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[21/38] Compiling SwiftyHaru Color.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:301:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
299 | set {
300 | switch newValue._wrapped {
301 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
302 | HPDF_Page_SetCMYKStroke(_page,
303 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:307:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
305 | color.yellow,
306 | color.black)
307 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
308 | HPDF_Page_SetRGBStroke(_page,
309 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:334:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
332 | set {
333 | switch newValue._wrapped {
334 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
335 | HPDF_Page_SetCMYKFill(_page,
336 | color.cyan,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:40:14: note: 'cmyk(cyan:magenta:yellow:black:)' declared here
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/DrawingContext.swift:340:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
338 | color.yellow,
339 | color.black)
340 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
341 | HPDF_Page_SetRGBFill(_page,
342 | color.red,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:39:14: note: 'rgb(red:green:blue:)' declared here
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:111:22: error: no exact matches in call to global function 'cos'
109 | public init(rotationAngle angle: Float) {
110 |
111 | let cosine = cos(angle)
| `- error: no exact matches in call to global function 'cos'
112 | let sine = sin(angle)
113 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:112:20: error: no exact matches in call to global function 'sin'
110 |
111 | let cosine = cos(angle)
112 | let sine = sin(angle)
| `- error: no exact matches in call to global function 'sin'
113 |
114 | self.init(a: cosine, b: sine,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/AffineTransform.swift:115:23: error: cannot convert value of type 'Vector' to expected argument type 'Float'
113 |
114 | self.init(a: cosine, b: sine,
115 | c: -sine, d: cosine,
| `- error: cannot convert value of type 'Vector' to expected argument type 'Float'
116 | tx: 0, ty: 0)
117 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
64 | get {
65 | switch _wrapped {
66 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
67 | return color.red
68 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:68:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
66 | case .rgb(let color):
67 | return color.red
68 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
69 | return (1 - color.cyan) * (1 - color.black)
70 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:76:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
74 | set {
75 | switch _wrapped {
76 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
77 | _wrapped = .rgb(red: newValue, green: color.green, blue: color.blue)
78 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:95:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
93 | get {
94 | switch _wrapped {
95 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
96 | return color.green
97 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:97:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
95 | case .rgb(let color):
96 | return color.green
97 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
98 | return (1 - color.magenta) * (1 - color.black)
99 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:105:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
103 | set {
104 | switch _wrapped {
105 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
106 | _wrapped = .rgb(red: color.red, green: newValue, blue: color.blue)
107 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:124:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
122 | get {
123 | switch _wrapped {
124 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
125 | return color.blue
126 | case .cmyk(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:126:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
124 | case .rgb(let color):
125 | return color.blue
126 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
127 | return (1 - color.yellow) * (1 - color.black)
128 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:134:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
132 | set {
133 | switch _wrapped {
134 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
135 | _wrapped = .rgb(red: color.red, green: color.green, blue: newValue)
136 | case .cmyk:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:153:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
151 | get {
152 | switch _wrapped {
153 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
154 | return color.cyan
155 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:155:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
153 | case .cmyk(let color):
154 | return color.cyan
155 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
156 | return black < 1 ? (1 - color.red - black) / (1 - black) : 0
157 | case .gray:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:163:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
161 | set {
162 | switch _wrapped {
163 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
164 | _wrapped = .cmyk(cyan: newValue,
165 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:183:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
181 | get {
182 | switch _wrapped {
183 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
184 | return color.magenta
185 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:185:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
183 | case .cmyk(let color):
184 | return color.magenta
185 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
186 | return black < 1 ? (1 - color.green - black) / (1 - black) : 0
187 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:193:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
191 | set {
192 | switch _wrapped {
193 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
194 | _wrapped = .cmyk(cyan: color.cyan,
195 | magenta: newValue,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:213:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
211 | get {
212 | switch _wrapped {
213 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
214 | return color.yellow
215 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:215:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
213 | case .cmyk(let color):
214 | return color.yellow
215 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
216 | return black < 1 ? (1 - color.blue - black) / (1 - black) : 0
217 | default:
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:223:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
221 | set {
222 | switch _wrapped {
223 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
224 | _wrapped = .cmyk(cyan: color.cyan,
225 | magenta: color.magenta,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:244:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
242 | get {
243 | switch _wrapped {
244 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
245 | return color.black
246 | case .rgb(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:246:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
37 |
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
| `- note: 'rgb(red:green:blue:)' declared here
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
41 | case gray(Float)
:
244 | case .cmyk(let color):
245 | return color.black
246 | case .rgb(let color):
| `- warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated
247 | return 1 - max(color.red, color.green, color.blue)
248 | case .gray(let color):
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:254:24: warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
38 | internal enum _ColorSpaceWrapper: Hashable {
39 | case rgb(red: Float, green: Float, blue: Float)
40 | case cmyk(cyan: Float, magenta: Float, yellow: Float, black: Float)
| `- note: 'cmyk(cyan:magenta:yellow:black:)' declared here
41 | case gray(Float)
42 | }
:
252 | set {
253 | switch _wrapped {
254 | case .cmyk(let color):
| `- warning: enum case 'cmyk' has 4 associated values; matching them as a tuple is deprecated
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[22/38] Compiling SwiftyHaru PDFPage.swift
[23/38] Compiling SwiftyHaru Sequence.swift
[24/38] Compiling SwiftyHaru TextAlignment.swift
[25/38] Compiling SwiftyHaru Unimplemented.swift
[26/38] Compiling SwiftyHaru PDFDocument.Metadata.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[27/38] Compiling SwiftyHaru PDFDocument.PageLayout.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[28/38] Compiling SwiftyHaru PDFDocument.PageNumberStyle.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[29/38] Compiling SwiftyHaru PDFDocument.Permissions.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[30/38] Compiling SwiftyHaru PDFDocument.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[31/38] Compiling SwiftyHaru PDFError.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[32/38] Compiling SwiftyHaru PDFPage.Direction.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[33/38] Compiling SwiftyHaru PDFPage.Size.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[34/38] Compiling SwiftyHaru PDFColorSpace.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[35/38] Compiling SwiftyHaru Path.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[36/38] Compiling SwiftyHaru Grid+Drawable.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[37/38] Compiling SwiftyHaru Grid.LabelParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[38/38] Compiling SwiftyHaru Grid.Labels.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:26: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
178 | let ry3 = -radius * sin(newAngle)
179 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:19: error: unary operator '-' cannot be applied to an operand of type 'Float'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: unary operator '-' cannot be applied to an operand of type 'Float'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Float)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:29: error: no exact matches in call to global function 'sin'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| `- error: no exact matches in call to global function 'sin'
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
BUILD FAILURE 6.1 android