Build Information
Failed to build SwiftyHaru, reference 0.3.0 (eee249
), with Swift 6.2 (beta) for Android on 17 Jun 2025 18:08:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: 0.3.0
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
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at eee2497 Release 0.3.0
Cloned https://github.com/WeirdMath/SwiftyHaru.git
Revision (git rev-parse @):
eee2497186ccc8322d40cc7cb4cf5efb61f026fa
SUCCESS checkout https://github.com/WeirdMath/SwiftyHaru.git at 0.3.0
========================================
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-0":/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.53s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.4 (3.24s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
[4582/75463] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (5.40s)
Fetched https://github.com/swiftlang/swift-syntax from cache (5.47s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (5.90s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.74s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (3.23s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.34s)
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/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-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_encryptdict.c
[1/75] Compiling CLibHaru hpdf_objects.c
[2/75] Write sources
[3/75] Compiling CLibHaru hpdf_exdata.c
[4/75] Compiling CLibPNG pngrio.c
[5/75] Compiling CLibHaru hpdf_font_cid.c
[6/75] Write swift-version-8C5A4AE7A8CE2BA.txt
[7/75] Compiling CLibPNG pngwio.c
[8/75] Compiling CLibPNG pngwtran.c
[9/75] Compiling CLibPNG pngwrite.c
[10/75] Compiling CLibPNG pngtrans.c
[11/75] Compiling CLibPNG pngwutil.c
[12/75] Compiling CLibPNG pngset.c
[13/75] Compiling CLibHaru hpdf_error.c
[14/75] Compiling CLibHaru hpdf_font.c
[14/75] Compiling CLibHaru hpdf_ext_gstate.c
[16/75] Compiling CLibPNG pngmem.c
[17/75] Compiling CLibPNG pngpread.c
[18/75] Compiling CLibPNG pngrutil.c
[19/75] Compiling CLibPNG pngget.c
[20/75] Compiling CLibPNG pngerror.c
[21/75] Compiling CLibHaru hpdf_utils.c
[22/75] Compiling CLibHaru hpdf_streams.c
[23/75] Compiling CLibHaru hpdf_string.c
[23/75] Compiling CLibHaru hpdf_u3d.c
[25/75] Compiling CLibHaru hpdf_real.c
[26/75] Compiling CLibHaru hpdf_xref.c
[27/75] Compiling CLibPNG png.c
[28/75] Compiling CLibPNG pngrtran.c
[29/75] Compiling CLibPNG pngread.c
[30/75] Compiling CLibHaru hpdf_pdfa.c
[31/75] Compiling CLibHaru hpdf_number.c
[32/75] Compiling CLibHaru hpdf_null.c
[33/75] Compiling CLibHaru hpdf_page_label.c
[34/75] Compiling CLibHaru hpdf_outline.c
[35/75] Compiling CLibHaru hpdf_namedict.c
[36/75] Compiling CLibHaru hpdf_mmgr.c
[36/75] Compiling CLibHaru hpdf_list.c
[38/75] Compiling CLibHaru hpdf_name.c
[38/75] Compiling CLibHaru hpdf_pages.c
[40/75] Compiling CLibHaru hpdf_info.c
[41/75] Compiling CLibHaru hpdf_gstate.c
[42/75] Compiling CLibHaru hpdf_page_operator.c
[43/75] Compiling CLibHaru hpdf_image_png.c
[44/75] Compiling CLibHaru hpdf_image_ccitt.c
[45/75] Compiling CLibHaru hpdf_image.c
[46/75] Compiling CLibHaru hpdf_fontdef_type1.c
[47/75] Compiling CLibHaru hpdf_fontdef_kr.c
[48/75] Compiling CLibHaru hpdf_fontdef_cnt.c
[49/75] Compiling CLibHaru hpdf_fontdef_cns.c
[50/75] Compiling CLibHaru hpdf_fontdef.c
[51/75] Compiling CLibHaru hpdf_fontdef_cid.c
[52/75] Compiling CLibHaru hpdf_fontdef_jp.c
[53/75] Compiling CLibHaru hpdf_font_tt.c
[54/75] Compiling CLibHaru hpdf_encoder_utf.c
[55/75] Compiling CLibHaru hpdf_fontdef_base14.c
[56/75] Compiling CLibHaru hpdf_encrypt.c
[57/75] Compiling CLibHaru hpdf_fontdef_tt.c
[58/75] Compiling CLibHaru hpdf_font_type1.c
[59/75] Compiling CLibHaru hpdf_dummy.c
[60/75] Compiling CLibHaru hpdf_doc_png.c
[61/75] Compiling CLibHaru hpdf_dict.c
[62/75] Compiling CLibHaru hpdf_destination.c
[63/75] Compiling CLibHaru hpdf_encoder.c
[64/75] Compiling CLibHaru hpdf_boolean.c
[65/75] Compiling CLibHaru hpdf_doc.c
[66/75] Compiling CLibHaru hpdf_encoder_jp.c
[67/75] Compiling CLibHaru hpdf_catalog.c
[68/75] Compiling CLibHaru hpdf_binary.c
[69/75] Compiling CLibHaru hpdf_array.c
[70/75] Compiling CLibHaru hpdf_encoder_cnt.c
[71/75] Compiling CLibHaru hpdf_3dmeasure.c
[72/75] Compiling CLibHaru hpdf_annotation.c
[73/75] Compiling CLibHaru hpdf_encoder_kr.c
[74/75] Compiling CLibHaru hpdf_encoder_cns.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/108] 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 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[77/108] Compiling SwiftyHaru PDFDocument.Metadata.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[78/108] Compiling SwiftyHaru PDFDocument.PageLayout.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[79/108] Compiling SwiftyHaru PDFDocument.PageNumberStyle.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[80/108] Compiling SwiftyHaru PDFDocument.Permissions.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageLayout.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines how pages in the document should be displayed.
16 | public enum PageLayout: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Only one page is displayed.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFDocument.PageNumberStyle.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Determines a page labeling style of the document.
16 | public enum PageNumberStyle: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// Arabic numerals (1 2 3 4).
[81/112] Compiling SwiftyHaru PDFPage.swift
[82/112] Compiling SwiftyHaru Sequence.swift
[83/112] Compiling SwiftyHaru TextAlignment.swift
[84/112] Compiling SwiftyHaru Unimplemented.swift
[85/112] Compiling SwiftyHaru Grid.swift
[86/112] Compiling SwiftyHaru PDFDateFormatter.swift
[87/112] Compiling SwiftyHaru PDFDocument.CompressionMode.swift
[88/112] Compiling SwiftyHaru PDFDocument.EncryptionMode.swift
[89/112] Compiling SwiftyHaru PDFDocument.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[90/112] Compiling SwiftyHaru PDFError.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[91/112] Compiling SwiftyHaru PDFPage.Direction.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[92/112] Compiling SwiftyHaru PDFPage.Size.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:16:5: warning: 'public' modifier is redundant for enum declared in a public extension
14 |
15 | /// Orientation of a page.
16 | public enum Direction: UInt32 {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
17 |
18 | /// The width is less than the height.
/host/spi-builder-workspace/Sources/SwiftyHaru/PDFPage.Direction.swift:28:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
26 | internal extension PDFPage.Direction {
27 |
28 | internal init?(haruEnum: HPDF_PageDirection) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | self.init(rawValue: haruEnum.rawValue)
30 | }
[93/112] Compiling SwiftyHaru Grid.Lines.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[94/112] Compiling SwiftyHaru Grid.MajorLineParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[95/112] Compiling SwiftyHaru Grid.MinorLineParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[96/112] Compiling SwiftyHaru Grid.SerifParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[97/112] Compiling SwiftyHaru Grid.Serifs.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Lines.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the vertical and horizontal major and minor lines.
12 | public struct Lines: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the major and minor line parameters are set to their `.default`.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MajorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's major lines.
12 | public struct MajorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.MinorLineParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's minor lines.
12 | public struct MinorLineParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default parameters, where line width is 0.25, line color is 80% gray and the default
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.SerifParameters.swift:13:5: warning: 'public' modifier is redundant for struct declared in a public extension
11 | /// Represents the properties of a grid's serifs. Serifs are short lines that can be placed on the edges of
12 | /// a grid and serve to put labels near them.
13 | public struct SerifParameters: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
14 |
15 | /// Default parameters, where the frequency is 5, the width of the serifs is 0.5
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Serifs.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
12 | public struct Serifs: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// Default set, where all the serif parameters are set to their `.default`.
[98/112] Compiling SwiftyHaru DashStyle.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[99/112] Compiling SwiftyHaru Drawable.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[100/112] Compiling SwiftyHaru Geometry.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[101/112] Compiling SwiftyHaru LineCap.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[102/112] Compiling SwiftyHaru LineJoin.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineCap.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineCap {
37 |
38 | internal init(_ haruEnum: HPDF_LineCap) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/LineJoin.swift:38:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
36 | internal extension LineJoin {
37 |
38 | internal init(_ haruEnum: HPDF_LineJoin) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
39 | self.init(rawValue: haruEnum.rawValue)!
40 | }
[103/112] Compiling SwiftyHaru PDFColorSpace.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.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:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178: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:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[104/112] Compiling SwiftyHaru Path.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.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:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178: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:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[105/112] Compiling SwiftyHaru Grid+Drawable.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.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:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178: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:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[106/112] Compiling SwiftyHaru Grid.LabelParameters.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177:28: error: no exact matches in call to global function 'cos'
175 | let newAngle = (endAngle - beginningAngle) / 2 / 180 * .pi
176 |
177 | let rx3 = radius * cos(newAngle)
| `- error: no exact matches in call to global function 'cos'
178 | let ry3 = -radius * sin(newAngle)
179 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.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:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178: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:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[107/112] Compiling SwiftyHaru Grid.Labels.swift
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/PDFColorSpace.swift:31:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
29 | internal extension PDFColorSpace {
30 |
31 | internal init(haruEnum: HPDF_ColorSpace) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
32 | self.init(rawValue: haruEnum.rawValue)!
33 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:177: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:27: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
176 |
177 | let rx3 = radius * cos(newAngle)
178 | let ry3 = -radius * sin(newAngle)
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float), (Float, Vector)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Path.swift:178: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:180:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
178 | let ry3 = -radius * sin(newAngle)
179 |
180 | _currentPosition = Point(x: rx3 * cos(deltaAngle) - ry3 * sin(deltaAngle) + center.x,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
181 | y: rx3 * sin(deltaAngle) + ry3 * cos(deltaAngle) + center.y)
182 |
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.LabelParameters.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Represents the properties of a grid's line labels. Labels can only be placed near serifs.
12 | public struct LabelParameters {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The sequnce of the text labels to draw.
/host/spi-builder-workspace/Sources/SwiftyHaru/Grid/Grid.Labels.swift:12:5: warning: 'public' modifier is redundant for struct declared in a public extension
10 |
11 | /// Encapsulates the parameters of the labels for vertical and horizontal lines.
12 | public struct Labels: Equatable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
13 |
14 | /// The labels for vertical lines at the top of the grid.
[108/112] 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:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#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,
[109/112] 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:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#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,
[110/112] 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:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#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/112] 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:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#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/112] 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:395:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
393 | internal extension Color {
394 |
395 | internal init(_ haruRGBColor: HPDF_RGBColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
396 | self.init(red: haruRGBColor.r, green: haruRGBColor.g, blue: haruRGBColor.b)!
397 | }
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:399:5: warning: 'internal' modifier is redundant for initializer declared in an internal extension
397 | }
398 |
399 | internal init(_ haruCMYKColor: HPDF_CMYKColor) {
| `- warning: 'internal' modifier is redundant for initializer declared in an internal extension
400 | self.init(cyan: haruCMYKColor.c,
401 | magenta: haruCMYKColor.m,
/host/spi-builder-workspace/Sources/SwiftyHaru/Graphics/Color.swift:66:23: warning: enum case 'rgb' has 3 associated values; matching them as a tuple is deprecated [#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