Build Information
Failed to build NativeMarkKit, reference master (c58eb7), with Swift 6.3 for Android on 12 Apr 2026 23:55:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
47 | attributes[.strikethroughColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:49:25: error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
47 | attributes[.strikethroughColor] = color
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
50 | case let .underline(style, color: color):
51 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:52:29: error: type 'NSAttributedString.Key' has no member 'underlineColor'
50 | case let .underline(style, color: color):
51 | if let color = color {
52 | attributes[.underlineColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'underlineColor'
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:54:25: error: type 'NSAttributedString.Key' has no member 'underlineStyle'
52 | attributes[.underlineColor] = color
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'underlineStyle'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:53: error: cannot find type 'NativeFont' in scope
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:43: error: reference to member 'font' cannot be resolved without a contextual type
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:57:25: error: type 'NSAttributedString.Key' has no member 'font'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
57 | attributes[.font] = currentFont.withSize(fontSize)
| `- error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:53: error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:43: error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:60:25: error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
60 | attributes[.font] = currentFont.withTraits(traits)
| `- error: type 'NSAttributedString.Key' has no member 'font'
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:54: error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:84: error: value of type 'TextStyle' has no member 'makeFont'
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:44: error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:8:18: error: cannot find type 'NativeColor' in scope
6 | #endif
7 |
8 | public extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
9 | #if canImport(UIKit)
10 | static var adaptableTextColor: NativeColor {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:90:19: error: cannot find type 'NativeColor' in scope
88 | }
89 |
90 | private extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:61:46: error: cannot find type 'NativeColor' in scope
59 | #endif
60 |
61 | static var adaptableBlockQuoteTextColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
62 | makeAdaptiveColor(light: .blockQuoteText, dark: blockQuoteTextDark)
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:65:48: error: cannot find type 'NativeColor' in scope
63 | }
64 |
65 | static var adaptableBlockQuoteMarginColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
66 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:69:46: error: cannot find type 'NativeColor' in scope
67 | }
68 |
69 | static var adaptableCodeBackgroundColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
70 | makeAdaptiveColor(light: .codeBackground, dark: .codeBackgroundDark)
71 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:73:42: error: cannot find type 'NativeColor' in scope
71 | }
72 |
73 | static var adaptableCodeBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
74 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
75 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:77:48: error: cannot find type 'NativeColor' in scope
75 | }
76 |
77 | static var adaptableImagePlaceholderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
78 | makeAdaptiveColor(light: .imagePlaceholder, dark: .imagePlaceholderDark)
79 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:81:49: error: cannot find type 'NativeColor' in scope
79 | }
80 |
81 | static var adaptableCheckmarkDisabledColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
82 | makeAdaptiveColor(light: .checkmarkDisabled, dark: .checkmarkDisabledDark)
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:85:55: error: cannot find type 'NativeColor' in scope
83 | }
84 |
85 | static var adaptableCheckmarkDisabledBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
86 | makeAdaptiveColor(light: .checkmarkDisabledBorder, dark: .checkmarkDisabledBorderDark)
87 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:91:33: error: cannot find 'NativeColor' in scope
89 |
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:92:37: error: cannot find 'NativeColor' in scope
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:93:33: error: cannot find 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:94:37: error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:95:35: error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:96:39: error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:97:42: error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:98:46: error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:99:36: error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
101 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:100:40: error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
101 |
102 | #if canImport(AppKit)
[151/153] Compiling NativeMarkKit NativeTypes.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:7:8: error: Unsupported platform
5 | import AppKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Em.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/FourSidedValue.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Length.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeTypes.swift:33:8: error: Unsupported platform
31 | #else
32 |
33 | #error("Unsupported platform")
| `- error: Unsupported platform
34 |
35 | #endif
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Points.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:8:8: error: Unsupported platform
6 | import UIKit
7 | #else
8 | #error("Unsupported platform")
| `- error: Unsupported platform
9 | #endif
10 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:11:20: error: cannot find type 'NSTextAlignment' in scope
9 |
10 | public enum BlockStyle {
11 | case alignment(NSTextAlignment)
| `- error: cannot find type 'NSTextAlignment' in scope
12 | case firstLineHeadIndent(Length)
13 | case headIndent(Length)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:19:20: error: cannot find type 'NSLineBreakMode' in scope
17 | case paragraphSpacingAfter(Length)
18 | case paragraphSpacingBefore(Length)
19 | case lineBreak(NSLineBreakMode)
| `- error: cannot find type 'NSLineBreakMode' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:22:51: error: cannot find type 'NativeColor' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
| `- error: cannot find type 'NativeColor' in scope
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
24 | case blockMargin(Margin)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:18:60: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.shape = shape
20 | self.width = width
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:46: error: cannot infer contextual base in reference to member 'rectangle'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'rectangle'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:64: error: cannot infer contextual base in reference to member 'all'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'all'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:88: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:26:26: error: cannot find type 'NativeColor' in scope
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
26 | case blockBackground(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
27 | case list(markerToContentIndent: Length = 1.5.em)
28 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:11:20: error: cannot find type 'NativeColor' in scope
9 |
10 | public enum InlineStyle {
11 | case textColor(NativeColor)
| `- error: cannot find type 'NativeColor' in scope
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:13:26: error: cannot find type 'NativeColor' in scope
11 | case textColor(NativeColor)
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:24: error: cannot find type 'NSUnderlineStyle' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:49: error: cannot find type 'NativeColor' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:20: error: cannot find type 'NSUnderlineStyle' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:45: error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:22:44: error: cannot find type 'NativeColor' in scope
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
| `- error: cannot find type 'NativeColor' in scope
23 |
24 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:32:36: error: cannot find type 'NativeColor' in scope
30 |
31 | public extension BlockStyle {
32 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
33 | .inlineStyle(.textColor(value))
34 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:40:42: error: cannot find type 'NativeColor' in scope
38 | }
39 |
40 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
41 | .inlineStyle(.backgroundColor(value))
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:40: error: cannot find type 'NSUnderlineStyle' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:65: error: cannot find type 'NativeColor' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:36: error: cannot find type 'NSUnderlineStyle' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:49: error: cannot find type 'NSMutableParagraphStyle' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:92: error: cannot find type 'NativeFont' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:49: error: cannot find type 'NSMutableParagraphStyle' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:92: error: cannot find type 'NativeFont' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NativeFont' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:54: error: cannot find type 'NativeFont' in scope
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:84: error: value of type 'TextStyle' has no member 'makeFont'
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:44: error: reference to member 'font' cannot be resolved without a contextual type
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:54: error: cannot find type 'NativeFont' in scope
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:84: error: value of type 'TextStyle' has no member 'makeFont'
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:44: error: reference to member 'font' cannot be resolved without a contextual type
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:54: error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:84: error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:44: error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:13:15: error: type 'Border' does not conform to protocol 'Equatable'
11 | }
12 |
13 | public struct Border: Equatable {
| |- error: type 'Border' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Border' to 'Equatable'
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
Swift.==:1:24: note: candidate would match if 'Border' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Border' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Border' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Border' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Border' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Border' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Border' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Border' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Border' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Border' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Border, Border) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Border, Border) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:45: error: cannot infer contextual base in reference to member 'rectangle'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'rectangle'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:85: error: cannot infer contextual base in reference to member 'clear'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'clear'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:62:41: error: value of type 'CGRect' has no member 'fill'
60 | color.set()
61 | if sides.contains(.left) {
62 | frame.leftFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:65:40: error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
65 | frame.topFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:68:42: error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
68 | frame.rightFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:71:43: error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
71 | frame.bottomFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
72 | }
73 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:80:20: error: cannot find 'NativeBezierPath' in scope
78 | // to represent. So inset the frame by half the width
79 | let pathFrame = frame.insetBy(dx: width / 2.0, dy: width / 2.0)
80 | let path = NativeBezierPath(roundedRect: pathFrame, cornerRadius: cornerRadius)
| `- error: cannot find 'NativeBezierPath' in scope
81 |
82 | // Draw background first
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:83:9: error: cannot find 'saveGraphicsState' in scope
81 |
82 | // Draw background first
83 | saveGraphicsState()
| `- error: cannot find 'saveGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:86:9: error: cannot find 'restoreGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
86 | restoreGraphicsState()
| `- error: cannot find 'restoreGraphicsState' in scope
87 |
88 | // Be sure to draw the border _over_ the background
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:4:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
2 |
3 | public final class DefaultImageLoader: ImageLoader {
4 | private let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 |
6 | public init() {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:10:71: error: cannot find type 'NativeImage' in scope
8 | }
9 |
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:12:24: error: 'nil' requires a contextual type
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
| `- error: 'nil' requires a contextual type
13 | return
14 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:17:53: error: cannot find 'NativeImage' in scope
15 |
16 | let task = session.dataTask(with: url) { maybeData, _, _ in
17 | guard let data = maybeData, let image = NativeImage(data: data) else {
| `- error: cannot find 'NativeImage' in scope
18 | DispatchQueue.main.async {
19 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | image.size
15 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:59: error: cannot infer contextual base in reference to member 'roundedRect'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'roundedRect'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:107: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:49: error: cannot find type 'NSMutableParagraphStyle' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:92: error: cannot find type 'NativeFont' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:37:25: error: type 'NSAttributedString.Key' has no member 'foregroundColor'
35 | switch self {
36 | case let .textColor(color):
37 | attributes[.foregroundColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'foregroundColor'
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:25: error: type 'NSAttributedString.Key' has no member 'font'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:39: error: value of type 'TextStyle' has no member 'makeFont'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:41:25: error: type 'NSAttributedString.Key' has no member 'backgroundColor'
39 | attributes[.font] = style.makeFont()
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
| `- error: type 'NSAttributedString.Key' has no member 'backgroundColor'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:54: error: cannot find type 'NativeFont' in scope
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:84: error: value of type 'TextStyle' has no member 'makeFont'
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:44: error: reference to member 'font' cannot be resolved without a contextual type
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:44:25: error: type 'NSAttributedString.Key' has no member 'kern'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
| `- error: type 'NSAttributedString.Key' has no member 'kern'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:47:29: error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
47 | attributes[.strikethroughColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:49:25: error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
47 | attributes[.strikethroughColor] = color
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
50 | case let .underline(style, color: color):
51 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:52:29: error: type 'NSAttributedString.Key' has no member 'underlineColor'
50 | case let .underline(style, color: color):
51 | if let color = color {
52 | attributes[.underlineColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'underlineColor'
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:54:25: error: type 'NSAttributedString.Key' has no member 'underlineStyle'
52 | attributes[.underlineColor] = color
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'underlineStyle'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:53: error: cannot find type 'NativeFont' in scope
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:43: error: reference to member 'font' cannot be resolved without a contextual type
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:57:25: error: type 'NSAttributedString.Key' has no member 'font'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
57 | attributes[.font] = currentFont.withSize(fontSize)
| `- error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:53: error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:43: error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:60:25: error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
60 | attributes[.font] = currentFont.withTraits(traits)
| `- error: type 'NSAttributedString.Key' has no member 'font'
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:54: error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:84: error: value of type 'TextStyle' has no member 'makeFont'
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:44: error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:8:18: error: cannot find type 'NativeColor' in scope
6 | #endif
7 |
8 | public extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
9 | #if canImport(UIKit)
10 | static var adaptableTextColor: NativeColor {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:90:19: error: cannot find type 'NativeColor' in scope
88 | }
89 |
90 | private extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:61:46: error: cannot find type 'NativeColor' in scope
59 | #endif
60 |
61 | static var adaptableBlockQuoteTextColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
62 | makeAdaptiveColor(light: .blockQuoteText, dark: blockQuoteTextDark)
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:65:48: error: cannot find type 'NativeColor' in scope
63 | }
64 |
65 | static var adaptableBlockQuoteMarginColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
66 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:69:46: error: cannot find type 'NativeColor' in scope
67 | }
68 |
69 | static var adaptableCodeBackgroundColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
70 | makeAdaptiveColor(light: .codeBackground, dark: .codeBackgroundDark)
71 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:73:42: error: cannot find type 'NativeColor' in scope
71 | }
72 |
73 | static var adaptableCodeBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
74 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
75 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:77:48: error: cannot find type 'NativeColor' in scope
75 | }
76 |
77 | static var adaptableImagePlaceholderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
78 | makeAdaptiveColor(light: .imagePlaceholder, dark: .imagePlaceholderDark)
79 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:81:49: error: cannot find type 'NativeColor' in scope
79 | }
80 |
81 | static var adaptableCheckmarkDisabledColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
82 | makeAdaptiveColor(light: .checkmarkDisabled, dark: .checkmarkDisabledDark)
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:85:55: error: cannot find type 'NativeColor' in scope
83 | }
84 |
85 | static var adaptableCheckmarkDisabledBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
86 | makeAdaptiveColor(light: .checkmarkDisabledBorder, dark: .checkmarkDisabledBorderDark)
87 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:91:33: error: cannot find 'NativeColor' in scope
89 |
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:92:37: error: cannot find 'NativeColor' in scope
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:93:33: error: cannot find 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:94:37: error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:95:35: error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:96:39: error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:97:42: error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:98:46: error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:99:36: error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
101 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:100:40: error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
101 |
102 | #if canImport(AppKit)
[152/153] Compiling NativeMarkKit OrderedListMarkerFormat.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:7:8: error: Unsupported platform
5 | import AppKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Em.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/FourSidedValue.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Length.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeTypes.swift:33:8: error: Unsupported platform
31 | #else
32 |
33 | #error("Unsupported platform")
| `- error: Unsupported platform
34 |
35 | #endif
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Points.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:8:8: error: Unsupported platform
6 | import UIKit
7 | #else
8 | #error("Unsupported platform")
| `- error: Unsupported platform
9 | #endif
10 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:11:20: error: cannot find type 'NSTextAlignment' in scope
9 |
10 | public enum BlockStyle {
11 | case alignment(NSTextAlignment)
| `- error: cannot find type 'NSTextAlignment' in scope
12 | case firstLineHeadIndent(Length)
13 | case headIndent(Length)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:19:20: error: cannot find type 'NSLineBreakMode' in scope
17 | case paragraphSpacingAfter(Length)
18 | case paragraphSpacingBefore(Length)
19 | case lineBreak(NSLineBreakMode)
| `- error: cannot find type 'NSLineBreakMode' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:22:51: error: cannot find type 'NativeColor' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
| `- error: cannot find type 'NativeColor' in scope
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
24 | case blockMargin(Margin)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:18:60: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.shape = shape
20 | self.width = width
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:46: error: cannot infer contextual base in reference to member 'rectangle'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'rectangle'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:64: error: cannot infer contextual base in reference to member 'all'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'all'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:88: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:26:26: error: cannot find type 'NativeColor' in scope
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
26 | case blockBackground(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
27 | case list(markerToContentIndent: Length = 1.5.em)
28 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:11:20: error: cannot find type 'NativeColor' in scope
9 |
10 | public enum InlineStyle {
11 | case textColor(NativeColor)
| `- error: cannot find type 'NativeColor' in scope
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:13:26: error: cannot find type 'NativeColor' in scope
11 | case textColor(NativeColor)
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:24: error: cannot find type 'NSUnderlineStyle' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:49: error: cannot find type 'NativeColor' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:20: error: cannot find type 'NSUnderlineStyle' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:45: error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:22:44: error: cannot find type 'NativeColor' in scope
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
| `- error: cannot find type 'NativeColor' in scope
23 |
24 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:32:36: error: cannot find type 'NativeColor' in scope
30 |
31 | public extension BlockStyle {
32 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
33 | .inlineStyle(.textColor(value))
34 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:40:42: error: cannot find type 'NativeColor' in scope
38 | }
39 |
40 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
41 | .inlineStyle(.backgroundColor(value))
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:40: error: cannot find type 'NSUnderlineStyle' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:65: error: cannot find type 'NativeColor' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:36: error: cannot find type 'NSUnderlineStyle' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:49: error: cannot find type 'NSMutableParagraphStyle' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:92: error: cannot find type 'NativeFont' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:49: error: cannot find type 'NSMutableParagraphStyle' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:92: error: cannot find type 'NativeFont' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NativeFont' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:54: error: cannot find type 'NativeFont' in scope
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:84: error: value of type 'TextStyle' has no member 'makeFont'
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:44: error: reference to member 'font' cannot be resolved without a contextual type
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:54: error: cannot find type 'NativeFont' in scope
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:84: error: value of type 'TextStyle' has no member 'makeFont'
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:44: error: reference to member 'font' cannot be resolved without a contextual type
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:54: error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:84: error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:44: error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:13:15: error: type 'Border' does not conform to protocol 'Equatable'
11 | }
12 |
13 | public struct Border: Equatable {
| |- error: type 'Border' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Border' to 'Equatable'
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
Swift.==:1:24: note: candidate would match if 'Border' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Border' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Border' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Border' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Border' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Border' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Border' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Border' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Border' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Border' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Border, Border) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Border, Border) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:45: error: cannot infer contextual base in reference to member 'rectangle'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'rectangle'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:85: error: cannot infer contextual base in reference to member 'clear'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'clear'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:62:41: error: value of type 'CGRect' has no member 'fill'
60 | color.set()
61 | if sides.contains(.left) {
62 | frame.leftFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:65:40: error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
65 | frame.topFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:68:42: error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
68 | frame.rightFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:71:43: error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
71 | frame.bottomFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
72 | }
73 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:80:20: error: cannot find 'NativeBezierPath' in scope
78 | // to represent. So inset the frame by half the width
79 | let pathFrame = frame.insetBy(dx: width / 2.0, dy: width / 2.0)
80 | let path = NativeBezierPath(roundedRect: pathFrame, cornerRadius: cornerRadius)
| `- error: cannot find 'NativeBezierPath' in scope
81 |
82 | // Draw background first
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:83:9: error: cannot find 'saveGraphicsState' in scope
81 |
82 | // Draw background first
83 | saveGraphicsState()
| `- error: cannot find 'saveGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:86:9: error: cannot find 'restoreGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
86 | restoreGraphicsState()
| `- error: cannot find 'restoreGraphicsState' in scope
87 |
88 | // Be sure to draw the border _over_ the background
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:4:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
2 |
3 | public final class DefaultImageLoader: ImageLoader {
4 | private let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 |
6 | public init() {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:10:71: error: cannot find type 'NativeImage' in scope
8 | }
9 |
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:12:24: error: 'nil' requires a contextual type
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
| `- error: 'nil' requires a contextual type
13 | return
14 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:17:53: error: cannot find 'NativeImage' in scope
15 |
16 | let task = session.dataTask(with: url) { maybeData, _, _ in
17 | guard let data = maybeData, let image = NativeImage(data: data) else {
| `- error: cannot find 'NativeImage' in scope
18 | DispatchQueue.main.async {
19 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | image.size
15 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:59: error: cannot infer contextual base in reference to member 'roundedRect'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'roundedRect'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:107: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:49: error: cannot find type 'NSMutableParagraphStyle' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:92: error: cannot find type 'NativeFont' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:37:25: error: type 'NSAttributedString.Key' has no member 'foregroundColor'
35 | switch self {
36 | case let .textColor(color):
37 | attributes[.foregroundColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'foregroundColor'
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:25: error: type 'NSAttributedString.Key' has no member 'font'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:39: error: value of type 'TextStyle' has no member 'makeFont'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:41:25: error: type 'NSAttributedString.Key' has no member 'backgroundColor'
39 | attributes[.font] = style.makeFont()
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
| `- error: type 'NSAttributedString.Key' has no member 'backgroundColor'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:54: error: cannot find type 'NativeFont' in scope
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:84: error: value of type 'TextStyle' has no member 'makeFont'
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:44: error: reference to member 'font' cannot be resolved without a contextual type
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:44:25: error: type 'NSAttributedString.Key' has no member 'kern'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
| `- error: type 'NSAttributedString.Key' has no member 'kern'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:47:29: error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
47 | attributes[.strikethroughColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:49:25: error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
47 | attributes[.strikethroughColor] = color
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
50 | case let .underline(style, color: color):
51 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:52:29: error: type 'NSAttributedString.Key' has no member 'underlineColor'
50 | case let .underline(style, color: color):
51 | if let color = color {
52 | attributes[.underlineColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'underlineColor'
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:54:25: error: type 'NSAttributedString.Key' has no member 'underlineStyle'
52 | attributes[.underlineColor] = color
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'underlineStyle'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:53: error: cannot find type 'NativeFont' in scope
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:43: error: reference to member 'font' cannot be resolved without a contextual type
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:57:25: error: type 'NSAttributedString.Key' has no member 'font'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
57 | attributes[.font] = currentFont.withSize(fontSize)
| `- error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:53: error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:43: error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:60:25: error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
60 | attributes[.font] = currentFont.withTraits(traits)
| `- error: type 'NSAttributedString.Key' has no member 'font'
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:54: error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:84: error: value of type 'TextStyle' has no member 'makeFont'
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:44: error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:8:18: error: cannot find type 'NativeColor' in scope
6 | #endif
7 |
8 | public extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
9 | #if canImport(UIKit)
10 | static var adaptableTextColor: NativeColor {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:90:19: error: cannot find type 'NativeColor' in scope
88 | }
89 |
90 | private extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:61:46: error: cannot find type 'NativeColor' in scope
59 | #endif
60 |
61 | static var adaptableBlockQuoteTextColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
62 | makeAdaptiveColor(light: .blockQuoteText, dark: blockQuoteTextDark)
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:65:48: error: cannot find type 'NativeColor' in scope
63 | }
64 |
65 | static var adaptableBlockQuoteMarginColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
66 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:69:46: error: cannot find type 'NativeColor' in scope
67 | }
68 |
69 | static var adaptableCodeBackgroundColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
70 | makeAdaptiveColor(light: .codeBackground, dark: .codeBackgroundDark)
71 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:73:42: error: cannot find type 'NativeColor' in scope
71 | }
72 |
73 | static var adaptableCodeBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
74 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
75 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:77:48: error: cannot find type 'NativeColor' in scope
75 | }
76 |
77 | static var adaptableImagePlaceholderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
78 | makeAdaptiveColor(light: .imagePlaceholder, dark: .imagePlaceholderDark)
79 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:81:49: error: cannot find type 'NativeColor' in scope
79 | }
80 |
81 | static var adaptableCheckmarkDisabledColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
82 | makeAdaptiveColor(light: .checkmarkDisabled, dark: .checkmarkDisabledDark)
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:85:55: error: cannot find type 'NativeColor' in scope
83 | }
84 |
85 | static var adaptableCheckmarkDisabledBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
86 | makeAdaptiveColor(light: .checkmarkDisabledBorder, dark: .checkmarkDisabledBorderDark)
87 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:91:33: error: cannot find 'NativeColor' in scope
89 |
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:92:37: error: cannot find 'NativeColor' in scope
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:93:33: error: cannot find 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:94:37: error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:95:35: error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:96:39: error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:97:42: error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:98:46: error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:99:36: error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
101 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:100:40: error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
101 |
102 | #if canImport(AppKit)
[153/153] Compiling NativeMarkKit Padding.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:7:8: error: Unsupported platform
5 | import AppKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Em.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/FourSidedValue.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Length.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeTypes.swift:33:8: error: Unsupported platform
31 | #else
32 |
33 | #error("Unsupported platform")
| `- error: Unsupported platform
34 |
35 | #endif
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Points.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:8:8: error: Unsupported platform
6 | import UIKit
7 | #else
8 | #error("Unsupported platform")
| `- error: Unsupported platform
9 | #endif
10 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:11:20: error: cannot find type 'NSTextAlignment' in scope
9 |
10 | public enum BlockStyle {
11 | case alignment(NSTextAlignment)
| `- error: cannot find type 'NSTextAlignment' in scope
12 | case firstLineHeadIndent(Length)
13 | case headIndent(Length)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:19:20: error: cannot find type 'NSLineBreakMode' in scope
17 | case paragraphSpacingAfter(Length)
18 | case paragraphSpacingBefore(Length)
19 | case lineBreak(NSLineBreakMode)
| `- error: cannot find type 'NSLineBreakMode' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:22:51: error: cannot find type 'NativeColor' in scope
20 | case orderedListMarker(OrderedListMarkerFormat, prefix: String = "", suffix: String = ".")
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
| `- error: cannot find type 'NativeColor' in scope
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
24 | case blockMargin(Margin)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:18:60: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.shape = shape
20 | self.width = width
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:46: error: cannot infer contextual base in reference to member 'rectangle'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'rectangle'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:64: error: cannot infer contextual base in reference to member 'all'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'all'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:88: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBorder(Border = Border(shape: .rectangle(sides: .all), width: 1, color: .adaptableCodeBorderColor))
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:26:26: error: cannot find type 'NativeColor' in scope
24 | case blockMargin(Margin)
25 | case blockPadding(Padding)
26 | case blockBackground(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
27 | case list(markerToContentIndent: Length = 1.5.em)
28 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:11:20: error: cannot find type 'NativeColor' in scope
9 |
10 | public enum InlineStyle {
11 | case textColor(NativeColor)
| `- error: cannot find type 'NativeColor' in scope
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:13:26: error: cannot find type 'NativeColor' in scope
11 | case textColor(NativeColor)
12 | case textStyle(TextStyle)
13 | case backgroundColor(NativeColor?)
| `- error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:24: error: cannot find type 'NSUnderlineStyle' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:15:49: error: cannot find type 'NativeColor' in scope
13 | case backgroundColor(NativeColor?)
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
17 | case fontSize(CGFloat)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:20: error: cannot find type 'NSUnderlineStyle' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NSUnderlineStyle' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:16:45: error: cannot find type 'NativeColor' in scope
14 | case kerning(Length)
15 | case strikethrough(NSUnderlineStyle, color: NativeColor? = nil)
16 | case underline(NSUnderlineStyle, color: NativeColor? = nil)
| `- error: cannot find type 'NativeColor' in scope
17 | case fontSize(CGFloat)
18 | case fontTraits(FontTraits)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:22:44: error: cannot find type 'NativeColor' in scope
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
| `- error: cannot find type 'NativeColor' in scope
23 |
24 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:32:36: error: cannot find type 'NativeColor' in scope
30 |
31 | public extension BlockStyle {
32 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
33 | .inlineStyle(.textColor(value))
34 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:40:42: error: cannot find type 'NativeColor' in scope
38 | }
39 |
40 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
41 | .inlineStyle(.backgroundColor(value))
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:40: error: cannot find type 'NSUnderlineStyle' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:48:65: error: cannot find type 'NativeColor' in scope
46 | }
47 |
48 | static func strikethrough(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
49 | .inlineStyle(.strikethrough(style, color: color))
50 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:36: error: cannot find type 'NSUnderlineStyle' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func underline(_ style: NSUnderlineStyle, color: NativeColor? = nil) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.underline(style, color: color))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:49: error: cannot find type 'NSMutableParagraphStyle' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:58:92: error: cannot find type 'NativeFont' in scope
56 |
57 | extension BlockStyle: ExpressibleAsParagraphStyle {
58 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
59 | switch self {
60 | case let .alignment(alignment):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:49: error: cannot find type 'NSMutableParagraphStyle' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:16:92: error: cannot find type 'NativeFont' in scope
14 |
15 | protocol ExpressibleAsParagraphStyle {
16 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont)
| `- error: cannot find type 'NativeFont' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:54: error: cannot find type 'NativeFont' in scope
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:84: error: value of type 'TextStyle' has no member 'makeFont'
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:98:44: error: reference to member 'font' cannot be resolved without a contextual type
96 | attributes[.thematicBreakColor] = color
97 | case let .list(markerToContentIndent: markerToContentIndent):
98 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
99 | let value = ListValue(markerToContentIndent: markerToContentIndent.asRawPoints(for: defaultFont.pointSize))
100 | attributes[.list] = value
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:54: error: cannot find type 'NativeFont' in scope
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:84: error: value of type 'TextStyle' has no member 'makeFont'
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:105:44: error: reference to member 'font' cannot be resolved without a contextual type
103 | attributes[.blockBorder] = BorderValue(border: border)
104 | case let .blockMargin(margin):
105 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:54: error: cannot find type 'NativeFont' in scope
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:84: error: value of type 'TextStyle' has no member 'makeFont'
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:108:44: error: reference to member 'font' cannot be resolved without a contextual type
106 | attributes[.blockMargin] = MarginValue(margin: margin.asRawPoints(for: defaultFont.pointSize))
107 | case let .blockPadding(padding):
108 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
109 | attributes[.blockPadding] = PaddingValue(padding: padding.asRawPoints(for: defaultFont.pointSize))
110 | case let .blockBackground(color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:13:15: error: type 'Border' does not conform to protocol 'Equatable'
11 | }
12 |
13 | public struct Border: Equatable {
| |- error: type 'Border' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Border' to 'Equatable'
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
Swift.==:1:24: note: candidate would match if 'Border' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Border' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Border' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Border' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Border' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Border' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Border' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Border' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Border' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Border' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Border' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Border' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Border' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'Border' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Border, Border) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Border, Border) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:45: error: cannot infer contextual base in reference to member 'rectangle'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'rectangle'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:26:85: error: cannot infer contextual base in reference to member 'clear'
24 |
25 | extension Border {
26 | public static let none = Border(shape: .rectangle(sides: []), width: 0, color: .clear)
| `- error: cannot infer contextual base in reference to member 'clear'
27 |
28 | var leftOffset: CGFloat {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:62:41: error: value of type 'CGRect' has no member 'fill'
60 | color.set()
61 | if sides.contains(.left) {
62 | frame.leftFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:65:40: error: value of type 'CGRect' has no member 'fill'
63 | }
64 | if sides.contains(.top) {
65 | frame.topFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:68:42: error: value of type 'CGRect' has no member 'fill'
66 | }
67 | if sides.contains(.right) {
68 | frame.rightFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:71:43: error: value of type 'CGRect' has no member 'fill'
69 | }
70 | if sides.contains(.bottom) {
71 | frame.bottomFrame(for: width).fill()
| `- error: value of type 'CGRect' has no member 'fill'
72 | }
73 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:80:20: error: cannot find 'NativeBezierPath' in scope
78 | // to represent. So inset the frame by half the width
79 | let pathFrame = frame.insetBy(dx: width / 2.0, dy: width / 2.0)
80 | let path = NativeBezierPath(roundedRect: pathFrame, cornerRadius: cornerRadius)
| `- error: cannot find 'NativeBezierPath' in scope
81 |
82 | // Draw background first
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:83:9: error: cannot find 'saveGraphicsState' in scope
81 |
82 | // Draw background first
83 | saveGraphicsState()
| `- error: cannot find 'saveGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:86:9: error: cannot find 'restoreGraphicsState' in scope
84 | path.addClip()
85 | background(frame.inset(by: self))
86 | restoreGraphicsState()
| `- error: cannot find 'restoreGraphicsState' in scope
87 |
88 | // Be sure to draw the border _over_ the background
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:4:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
2 |
3 | public final class DefaultImageLoader: ImageLoader {
4 | private let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 |
6 | public init() {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:10:71: error: cannot find type 'NativeImage' in scope
8 | }
9 |
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:12:24: error: 'nil' requires a contextual type
10 | public func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
11 | guard let url = URL(string: urlString) else {
12 | completion(nil)
| `- error: 'nil' requires a contextual type
13 | return
14 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageLoader.swift:17:53: error: cannot find 'NativeImage' in scope
15 |
16 | let task = session.dataTask(with: url) { maybeData, _, _ in
17 | guard let data = maybeData, let image = NativeImage(data: data) else {
| `- error: cannot find 'NativeImage' in scope
18 | DispatchQueue.main.async {
19 | completion(nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/DefaultImageSizer.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | image.size
15 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:59: error: cannot infer contextual base in reference to member 'roundedRect'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'roundedRect'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:107: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
18 | case fontTraits(FontTraits)
19 | case inlineBackground(margin: Margin = .zero,
20 | border: Border = Border(shape: .roundedRect(cornerRadius: 3), width: 1, color: .adaptableCodeBorderColor),
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
21 | padding: Padding = Padding(left: 5.pt, right: 5.pt, top: 0.pt, bottom: 0.pt),
22 | backgroundColor: NativeColor? = .adaptableCodeBackgroundColor)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:49: error: cannot find type 'NSMutableParagraphStyle' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:28:92: error: cannot find type 'NativeFont' in scope
26 |
27 | extension InlineStyle: ExpressibleAsParagraphStyle {
28 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
29 | // nop
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:37:25: error: type 'NSAttributedString.Key' has no member 'foregroundColor'
35 | switch self {
36 | case let .textColor(color):
37 | attributes[.foregroundColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'foregroundColor'
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:25: error: type 'NSAttributedString.Key' has no member 'font'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:39:39: error: value of type 'TextStyle' has no member 'makeFont'
37 | attributes[.foregroundColor] = color
38 | case let .textStyle(style):
39 | attributes[.font] = style.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:41:25: error: type 'NSAttributedString.Key' has no member 'backgroundColor'
39 | attributes[.font] = style.makeFont()
40 | case let .backgroundColor(backgroundColor):
41 | attributes[.backgroundColor] = backgroundColor
| `- error: type 'NSAttributedString.Key' has no member 'backgroundColor'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:54: error: cannot find type 'NativeFont' in scope
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:84: error: value of type 'TextStyle' has no member 'makeFont'
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:43:44: error: reference to member 'font' cannot be resolved without a contextual type
41 | attributes[.backgroundColor] = backgroundColor
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
45 | case let .strikethrough(style, color: color):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:44:25: error: type 'NSAttributedString.Key' has no member 'kern'
42 | case let .kerning(kerning):
43 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
44 | attributes[.kern] = kerning.asRawPoints(for: defaultFont.pointSize)
| `- error: type 'NSAttributedString.Key' has no member 'kern'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:47:29: error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
45 | case let .strikethrough(style, color: color):
46 | if let color = color {
47 | attributes[.strikethroughColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughColor'
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:49:25: error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
47 | attributes[.strikethroughColor] = color
48 | }
49 | attributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'strikethroughStyle'
50 | case let .underline(style, color: color):
51 | if let color = color {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:52:29: error: type 'NSAttributedString.Key' has no member 'underlineColor'
50 | case let .underline(style, color: color):
51 | if let color = color {
52 | attributes[.underlineColor] = color
| `- error: type 'NSAttributedString.Key' has no member 'underlineColor'
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:54:25: error: type 'NSAttributedString.Key' has no member 'underlineStyle'
52 | attributes[.underlineColor] = color
53 | }
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'NSAttributedString.Key' has no member 'underlineStyle'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:53: error: cannot find type 'NativeFont' in scope
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:56:43: error: reference to member 'font' cannot be resolved without a contextual type
54 | attributes[.underlineStyle] = NSNumber(value: style.rawValue)
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:57:25: error: type 'NSAttributedString.Key' has no member 'font'
55 | case let .fontSize(fontSize):
56 | let currentFont = attributes[.font] as? NativeFont
57 | attributes[.font] = currentFont.withSize(fontSize)
| `- error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:53: error: cannot find type 'NativeFont' in scope
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:59:43: error: reference to member 'font' cannot be resolved without a contextual type
57 | attributes[.font] = currentFont.withSize(fontSize)
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
| `- error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:60:25: error: type 'NSAttributedString.Key' has no member 'font'
58 | case let .fontTraits(traits):
59 | let currentFont = attributes[.font] as? NativeFont
60 | attributes[.font] = currentFont.withTraits(traits)
| `- error: type 'NSAttributedString.Key' has no member 'font'
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:54: error: cannot find type 'NativeFont' in scope
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:84: error: value of type 'TextStyle' has no member 'makeFont'
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:62:44: error: reference to member 'font' cannot be resolved without a contextual type
60 | attributes[.font] = currentFont.withTraits(traits)
61 | case let .inlineBackground(margin: margin, border: border, padding: padding, backgroundColor: backgroundColor):
62 | let defaultFont = (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
| `- error: reference to member 'font' cannot be resolved without a contextual type
63 | let style = TextContainerStyle(margin: margin.asRawPoints(for: defaultFont.pointSize),
64 | border: border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:8:18: error: cannot find type 'NativeColor' in scope
6 | #endif
7 |
8 | public extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
9 | #if canImport(UIKit)
10 | static var adaptableTextColor: NativeColor {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:90:19: error: cannot find type 'NativeColor' in scope
88 | }
89 |
90 | private extension NativeColor {
| `- error: cannot find type 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:61:46: error: cannot find type 'NativeColor' in scope
59 | #endif
60 |
61 | static var adaptableBlockQuoteTextColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
62 | makeAdaptiveColor(light: .blockQuoteText, dark: blockQuoteTextDark)
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:65:48: error: cannot find type 'NativeColor' in scope
63 | }
64 |
65 | static var adaptableBlockQuoteMarginColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
66 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:69:46: error: cannot find type 'NativeColor' in scope
67 | }
68 |
69 | static var adaptableCodeBackgroundColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
70 | makeAdaptiveColor(light: .codeBackground, dark: .codeBackgroundDark)
71 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:73:42: error: cannot find type 'NativeColor' in scope
71 | }
72 |
73 | static var adaptableCodeBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
74 | makeAdaptiveColor(light: .lightGray, dark: .darkGray)
75 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:77:48: error: cannot find type 'NativeColor' in scope
75 | }
76 |
77 | static var adaptableImagePlaceholderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
78 | makeAdaptiveColor(light: .imagePlaceholder, dark: .imagePlaceholderDark)
79 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:81:49: error: cannot find type 'NativeColor' in scope
79 | }
80 |
81 | static var adaptableCheckmarkDisabledColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
82 | makeAdaptiveColor(light: .checkmarkDisabled, dark: .checkmarkDisabledDark)
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:85:55: error: cannot find type 'NativeColor' in scope
83 | }
84 |
85 | static var adaptableCheckmarkDisabledBorderColor: NativeColor {
| `- error: cannot find type 'NativeColor' in scope
86 | makeAdaptiveColor(light: .checkmarkDisabledBorder, dark: .checkmarkDisabledBorderDark)
87 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:91:33: error: cannot find 'NativeColor' in scope
89 |
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:92:37: error: cannot find 'NativeColor' in scope
90 | private extension NativeColor {
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:93:33: error: cannot find 'NativeColor' in scope
91 | static let blockQuoteText = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:94:37: error: cannot find 'NativeColor' in scope
92 | static let blockQuoteTextDark = NativeColor(red: 0.85, green: 0.85, blue: 0.85, alpha: 1.0)
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:95:35: error: cannot find 'NativeColor' in scope
93 | static let codeBackground = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:96:39: error: cannot find 'NativeColor' in scope
94 | static let codeBackgroundDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:97:42: error: cannot find 'NativeColor' in scope
95 | static let imagePlaceholder = NativeColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.0)
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:98:46: error: cannot find 'NativeColor' in scope
96 | static let imagePlaceholderDark = NativeColor(red: 0.05, green: 0.05, blue: 0.05, alpha: 1.0)
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:99:36: error: cannot find 'NativeColor' in scope
97 | static let checkmarkDisabledBorder = NativeColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 1.0)
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
101 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/NativeColor+Adaptable.swift:100:40: error: cannot find 'NativeColor' in scope
98 | static let checkmarkDisabledBorderDark = NativeColor(red: 0.25, green: 0.25, blue: 0.25, alpha: 1.0)
99 | static let checkmarkDisabled = NativeColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1.0)
100 | static let checkmarkDisabledDark = NativeColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
| `- error: cannot find 'NativeColor' in scope
101 |
102 | #if canImport(AppKit)
BUILD FAILURE 6.3 android