Build Information
Failed to build SwiftyHaru, reference dev (bcc8a3
), with Swift 6.2 (beta) for Android on 17 Jun 2025 18:08:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WeirdMath/SwiftyHaru.git
Reference: dev
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/WeirdMath/SwiftyHaru
* branch dev -> FETCH_HEAD
* [new branch] dev -> origin/dev
HEAD is now at bcc8a3c Fix CocoaPods build
Cloned https://github.com/WeirdMath/SwiftyHaru.git
Revision (git rev-parse @):
bcc8a3caeac078550b779783928f16828935fd41
SUCCESS checkout https://github.com/WeirdMath/SwiftyHaru.git at dev
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/WeirdMath/SwiftyHaru.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
[1/13227] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.47s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.4 (2.90s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.34s)
[1/70882] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.84s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (8.53s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.82s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (6.06s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (1.37s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.4
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Building for debugging...
[0/75] Compiling CLibHaru hpdf_boolean.c
[1/75] Compiling CLibHaru hpdf_array.c
[2/75] Compiling CLibHaru hpdf_dummy.c
[3/75] Write sources
[4/75] Compiling CLibHaru hpdf_3dmeasure.c
[5/75] Compiling CLibHaru hpdf_catalog.c
[6/75] Compiling CLibHaru hpdf_binary.c
[7/75] Compiling CLibHaru hpdf_annotation.c
[8/75] Compiling CLibHaru hpdf_encoder.c
[9/75] Compiling CLibPNG pngwtran.c
[10/75] Write swift-version-8C5A4AE7A8CE2BA.txt
[11/75] Compiling CLibPNG pngwio.c
[12/75] Compiling CLibPNG pngtrans.c
[13/75] Compiling CLibPNG pngwrite.c
[14/75] Compiling CLibPNG pngset.c
[15/75] Compiling CLibPNG pngrio.c
[15/75] Compiling CLibPNG pngwutil.c
[17/75] Compiling CLibPNG pngmem.c
[18/75] Compiling CLibPNG pngpread.c
[19/75] Compiling CLibPNG pngget.c
[20/75] Compiling CLibPNG pngread.c
[21/75] Compiling CLibHaru hpdf_utils.c
[21/75] Compiling CLibPNG pngerror.c
[23/75] Compiling CLibHaru hpdf_xref.c
[24/75] Compiling CLibHaru hpdf_u3d.c
[25/75] Compiling CLibHaru hpdf_string.c
[26/75] Compiling CLibHaru hpdf_real.c
[27/75] Compiling CLibPNG pngrtran.c
[28/75] Compiling CLibPNG pngrutil.c
[29/75] Compiling CLibHaru hpdf_streams.c
[30/75] Compiling CLibHaru hpdf_pages.c
[31/75] Compiling CLibHaru hpdf_pdfa.c
[32/75] Compiling CLibPNG png.c
[33/75] Compiling CLibHaru hpdf_page_label.c
[34/75] Compiling CLibHaru hpdf_null.c
[35/75] Compiling CLibHaru hpdf_number.c
[36/75] Compiling CLibHaru hpdf_namedict.c
[37/75] Compiling CLibHaru hpdf_outline.c
[38/75] Compiling CLibHaru hpdf_objects.c
[39/75] Compiling CLibHaru hpdf_list.c
[39/75] Compiling CLibHaru hpdf_mmgr.c
[41/75] Compiling CLibHaru hpdf_name.c
[42/75] Compiling CLibHaru hpdf_info.c
[43/75] Compiling CLibHaru hpdf_gstate.c
[44/75] Compiling CLibHaru hpdf_image.c
[45/75] Compiling CLibHaru hpdf_image_ccitt.c
[46/75] Compiling CLibHaru hpdf_page_operator.c
[46/75] Compiling CLibHaru hpdf_image_png.c
[48/75] Compiling CLibHaru hpdf_fontdef_type1.c
[49/75] Compiling CLibHaru hpdf_fontdef_cid.c
[50/75] Compiling CLibHaru hpdf_fontdef_cns.c
[50/75] Compiling CLibHaru hpdf_fontdef_cnt.c
[52/75] Compiling CLibHaru hpdf_fontdef_tt.c
[53/75] Compiling CLibHaru hpdf_fontdef_jp.c
[54/75] Compiling CLibHaru hpdf_fontdef.c
[55/75] Compiling CLibHaru hpdf_fontdef_kr.c
[56/75] Compiling CLibHaru hpdf_font_tt.c
[57/75] Compiling CLibHaru hpdf_font_type1.c
[58/75] Compiling CLibHaru hpdf_ext_gstate.c
[59/75] Compiling CLibHaru hpdf_font_cid.c
[60/75] Compiling CLibHaru hpdf_font.c
[61/75] Compiling CLibHaru hpdf_fontdef_base14.c
[62/75] Compiling CLibHaru hpdf_exdata.c
[63/75] Compiling CLibHaru hpdf_error.c
[64/75] Compiling CLibHaru hpdf_encryptdict.c
[65/75] Compiling CLibHaru hpdf_encrypt.c
[66/75] Compiling CLibHaru hpdf_encoder_utf.c
[67/75] Compiling CLibHaru hpdf_doc_png.c
[68/75] Compiling CLibHaru hpdf_dict.c
[69/75] Compiling CLibHaru hpdf_destination.c
[70/75] Compiling CLibHaru hpdf_encoder_cnt.c
[71/75] Compiling CLibHaru hpdf_encoder_jp.c
[72/75] Compiling CLibHaru hpdf_doc.c
[73/75] Compiling CLibHaru hpdf_encoder_kr.c
[74/75] Compiling CLibHaru hpdf_encoder_cns.c
[76/110] Compiling SwiftyHaru DashStyle.swift
[77/110] Compiling SwiftyHaru Drawable.swift
[78/110] Compiling SwiftyHaru Geometry.swift
[79/110] Compiling SwiftyHaru LineCap.swift
[80/110] Compiling SwiftyHaru LineJoin.swift
[81/110] Compiling SwiftyHaru PDFDocument.swift
[82/110] Compiling SwiftyHaru PDFError.swift
[83/110] Compiling SwiftyHaru PDFPage.Direction.swift
[84/110] Compiling SwiftyHaru PDFPage.Size.swift
[85/114] Compiling SwiftyHaru Grid.Labels.swift
[86/114] Compiling SwiftyHaru Grid.Lines.swift
[87/114] Compiling SwiftyHaru Grid.MajorLineParameters.swift
[88/114] Compiling SwiftyHaru Grid.MinorLineParameters.swift
[89/114] Compiling SwiftyHaru Grid.SerifParameters.swift
[90/114] Compiling SwiftyHaru PDFDocument.EncryptionMode.swift
[91/114] Compiling SwiftyHaru PDFDocument.Metadata.swift
[92/114] Compiling SwiftyHaru PDFDocument.PageLayout.swift
[93/114] Compiling SwiftyHaru PDFDocument.PageNumberStyle.swift
[94/114] Compiling SwiftyHaru PDFDocument.Permissions.swift
[95/114] Compiling SwiftyHaru Grid.Serifs.swift
[96/114] Compiling SwiftyHaru Grid.swift
[97/114] Compiling SwiftyHaru PDFArray.swift
[98/114] Compiling SwiftyHaru PDFDateFormatter.swift
[99/114] Compiling SwiftyHaru PDFDocument.CompressionMode.swift
[100/114] Compiling SwiftyHaru PDFPage.swift
[101/114] Compiling SwiftyHaru Sequence.swift
[102/114] Compiling SwiftyHaru TextAlignment.swift
[103/114] Compiling SwiftyHaru Unimplemented.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[104/114] 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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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 | }
[105/114] Compiling SwiftyHaru PDFColorSpace.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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: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 |
[106/114] Compiling SwiftyHaru Path.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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: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 |
[107/114] Compiling SwiftyHaru TextRenderingMode.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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: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 |
[108/114] Compiling SwiftyHaru Grid+Drawable.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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: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 |
[109/114] Compiling SwiftyHaru Grid.LabelParameters.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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: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: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 |
[110/114] 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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[111/114] 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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[112/114] 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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[113/114] 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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
[114/114] 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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-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:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
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 [#deprecation]
255 | _wrapped = .cmyk(cyan: color.cyan,
256 | magenta: color.magenta,
BUILD FAILURE 6.2 android