Build Information
Failed to build NativeMarkKit, reference 2.1.1 (4833aa
), with Swift 6.1 for Linux on 26 Apr 2025 22:35:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[119/126] Compiling NativeMarkKit Underline.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[120/126] Compiling NativeMarkKit UnorderedListMarkerFormat.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[121/126] Compiling NativeMarkKit Array+Utils.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[122/126] Compiling NativeMarkKit Character+Utils.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[123/126] Compiling NativeMarkKit HtmlEntities.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[124/126] Compiling NativeMarkKit Identifier.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[125/126] Compiling NativeMarkKit ParserError.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
[126/126] Compiling NativeMarkKit String+Utils.swift
/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/Strikethrough.swift:10:18: error: cannot find type 'NSUnderlineStyle' in scope
8 | #endif
9 |
10 | public extension NSUnderlineStyle {
| `- error: cannot find type 'NSUnderlineStyle' in scope
11 | static let none = NSUnderlineStyle([])
12 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:15:23: error: cannot find type 'NSUnderlineStyle' in scope
13 |
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public struct Strikethrough {
15 | public let style: NSUnderlineStyle
16 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:24: error: cannot find type 'NSUnderlineStyle' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
19 | self.style = style
20 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:18:49: error: cannot find type 'NativeColor' in scope
16 | public let color: NativeColor?
17 |
18 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
19 | self.style = style
20 | self.color = color
/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/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/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: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:20:38: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/InlineStyle.swift:20:96: error: cannot find type 'NativeColor' in scope
18 | case fontTraits(FontTraits)
19 | case backgroundBorder(width: CGFloat = 1, color: NativeColor = .adaptableBlockQuoteMarginColor, sides: BorderSides = .all)
20 | case inlineBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.pt, bottomMargin: Length = 1.pt, leftMargin: Length = 6.pt, rightMargin: Length = 6.pt)
| `- error: cannot find type 'NativeColor' in scope
21 | }
22 |
/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/BlockStyle.swift:28:36: error: cannot find type 'NativeColor' in scope
26 |
27 | public extension BlockStyle {
28 | static func textColor(_ value: NativeColor) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
29 | .inlineStyle(.textColor(value))
30 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:36:42: error: cannot find type 'NativeColor' in scope
34 | }
35 |
36 | static func backgroundColor(_ value: NativeColor?) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
37 | .inlineStyle(.backgroundColor(value))
38 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:37: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:23:95: error: cannot find type 'NativeColor' in scope
21 | case unorderedListMarker(UnorderedListMarkerFormat)
22 | case thematicBreak(thickness: CGFloat, color: NativeColor = .adaptableSeparatorColor)
23 | case blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
| `- error: cannot find type 'NativeColor' in scope
24 | case inlineStyle(InlineStyle)
25 | }
/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 blockBackground(fillColor: NativeColor = .adaptableCodeBackgroundColor, strokeColor: NativeColor = .adaptableCodeBorderColor, strokeWidth: CGFloat = 1, cornerRadius: CGFloat = 3, topMargin: Length = 1.em, bottomMargin: Length = 1.em, leftMargin: Length = 1.em, rightMargin: Length = 1.em)
24 | case inlineStyle(InlineStyle)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BlockStyle.swift:52:61: error: cannot find type 'NativeColor' in scope
50 | }
51 |
52 | static func backgroundBorder(width: CGFloat = 1, color: NativeColor = .lightGray, sides: BorderSides = .all) -> BlockStyle {
| `- error: cannot find type 'NativeColor' in scope
53 | .inlineStyle(.backgroundBorder(width: width, color: color, sides: sides))
54 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:69:35: error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
67 | .document: [
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBackgroundColor'
70 | .textColor(.adaptableTextColor)
71 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:70:29: error: cannot infer contextual base in reference to member 'adaptableTextColor'
68 | .textStyle(.body),
69 | .backgroundColor(.adaptableBackgroundColor),
70 | .textColor(.adaptableTextColor)
| `- error: cannot infer contextual base in reference to member 'adaptableTextColor'
71 | ],
72 | .heading(level: 1): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:46: error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBackgroundColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:105:90: error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
103 | .paragraphSpacingBefore(0.pt),
104 | .paragraphSpacingAfter(0.pt),
105 | .blockBackground(fillColor: .adaptableCodeBackgroundColor, strokeColor: .adaptableCodeBorderColor, strokeWidth: 1, cornerRadius: 3)
| `- error: cannot infer contextual base in reference to member 'adaptableCodeBorderColor'
106 | ],
107 | .blockQuote: [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:108:29: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
106 | ],
107 | .blockQuote: [
108 | .textColor(.adaptableBlockQuoteTextColor),
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteTextColor'
109 | .paragraphSpacingBefore(0.5.em),
110 | .paragraphSpacingAfter(0.5.em),
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:53: error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'adaptableBlockQuoteMarginColor'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:112:93: error: cannot infer contextual base in reference to member 'left'
110 | .paragraphSpacingAfter(0.5.em),
111 | .tailIndent(-1.em),
112 | .backgroundBorder(width: 8, color: .adaptableBlockQuoteMarginColor, sides: .left)
| `- error: cannot infer contextual base in reference to member 'left'
113 | ],
114 | .list(isTight: true): [
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:129:54: error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
127 | ],
128 | .thematicBreak: [
129 | .thematicBreak(thickness: 1, color: .adaptableSeparatorColor),
| `- error: cannot infer contextual base in reference to member 'adaptableSeparatorColor'
130 | ]
131 | ],
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:144:29: error: cannot infer contextual base in reference to member 'adaptableLinkColor'
142 | ],
143 | .link: [
144 | .textColor(.adaptableLinkColor),
| `- error: cannot infer contextual base in reference to member 'adaptableLinkColor'
145 | .underline(.single)
146 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:145:29: error: cannot infer contextual base in reference to member 'single'
143 | .link: [
144 | .textColor(.adaptableLinkColor),
145 | .underline(.single)
| `- error: cannot infer contextual base in reference to member 'single'
146 | ]
147 | ]
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:152:65: error: cannot find type 'NativeImage' in scope
150 |
151 | extension StyleSheet: ImageTextAttachmentDelegate {
152 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
153 | imageSizer.imageSize(urlString, image: image, lineFragment: lineFragment)
154 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:156:83: error: cannot find type 'NativeImage' in scope
154 | }
155 |
156 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void) {
| `- error: cannot find type 'NativeImage' in scope
157 | imageLoader.loadImage(urlString, completion: completion)
158 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/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/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/StyleStack.swift:66:72: error: cannot find type 'NativeFont' in scope
64 |
65 | private extension StyleStack {
66 | func defaultFont(for attributes: [NSAttributedString.Key: Any]) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
67 | (attributes[.font] as? NativeFont) ?? TextStyle.body.makeFont()
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:49: error: cannot find type 'NSMutableParagraphStyle' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:80:92: error: cannot find type 'NativeFont' in scope
78 |
79 | extension StyleStack.Scope: ExpressibleAsParagraphStyle {
80 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
81 | blockStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
82 | inlineStyles.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:49: error: cannot find type 'NSMutableParagraphStyle' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:95:92: error: cannot find type 'NativeFont' in scope
93 |
94 | extension Sequence where Element: ExpressibleAsParagraphStyle {
95 | func updateParagraphStyle(_ paragraphStyle: NSMutableParagraphStyle, with defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
96 | for style in self {
97 | style.updateParagraphStyle(paragraphStyle, with: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:55:30: error: cannot find 'NSMutableParagraphStyle' in scope
53 |
54 | let font = defaultFont(for: attributes)
55 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
56 | paragraphStyle.tabStops = []
57 | paragraphStyle.defaultTabInterval = 2.em.asRawPoints(for: font.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/StyleStack.swift:60:21: error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
58 | scopes.updateParagraphStyle(paragraphStyle, with: font)
59 |
60 | attributes[.paragraphStyle] = paragraphStyle
| `- error: type 'NSAttributedString.Key' has no member 'paragraphStyle'
61 | return attributes
62 | }
/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/TextStyle.swift:36:30: error: value of type 'TextStyle' has no member 'pointSize'
34 | switch self {
35 | case let .scaled(to: textStyle):
36 | return textStyle.pointSize
| `- error: value of type 'TextStyle' has no member 'pointSize'
37 | case let .fixed(size):
38 | return size
/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/Underline.swift:11:23: error: cannot find type 'NSUnderlineStyle' in scope
9 |
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
| `- error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:12:23: error: cannot find type 'NativeColor' in scope
10 | public struct Underline {
11 | public let style: NSUnderlineStyle
12 | public let color: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:24: error: cannot find type 'NSUnderlineStyle' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NSUnderlineStyle' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Underline.swift:14:49: error: cannot find type 'NativeColor' in scope
12 | public let color: NativeColor?
13 |
14 | public init(style: NSUnderlineStyle, color: NativeColor?) {
| `- error: cannot find type 'NativeColor' in scope
15 | self.style = style
16 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Strikethrough.swift:11:23: error: cannot find 'NSUnderlineStyle' in scope
9 |
10 | public extension NSUnderlineStyle {
11 | static let none = NSUnderlineStyle([])
| `- error: cannot find 'NSUnderlineStyle' in scope
12 | }
13 |
BUILD FAILURE 6.1 linux