Build Information
Failed to build NSAttributedStringBuilder, reference 0.3.1 (fd7989
), with Swift 6.0 for Linux on 30 Nov 2024 23:32:27 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
204 | /// - color: The new background color.
205 | /// - Returns: A copy of the modified attributed string.
206 | func backgroundColor(_ color: AColor) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
207 | addingAttributes(Attributes().backgroundColor(color))
208 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:82: error: cannot find type 'NSAttributedString' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:29: error: cannot find type 'NSUnderlineStyle' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSUnderlineStyle' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:64: error: cannot find type 'AColor' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:86: error: cannot find type 'NSAttributedString' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:33: error: cannot find type 'NSUnderlineStyle' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSUnderlineStyle' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:68: error: cannot find type 'AColor' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:245:10: error: cannot find type 'NSAttributedString' in scope
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
245 | ) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
246 | let newAttributes = attributes()
247 | .shadow(offset: offset, blurRadius: blurRadius, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:242:17: error: cannot find type 'CGSize' in scope
240 | /// - Returns: A copy of the modified attributed string.
241 | func shadow(
242 | offset: CGSize = .init(width: 1, height: 1),
| `- error: cannot find type 'CGSize' in scope
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:244:16: error: cannot find type 'AColor' in scope
242 | offset: CGSize = .init(width: 1, height: 1),
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
| `- error: cannot find type 'AColor' in scope
245 | ) -> NSAttributedString {
246 | let newAttributes = attributes()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:261:63: error: cannot find type 'NSAttributedString' in scope
259 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
260 | /// - Returns: A copy of the modified attributed string.
261 | func stroke(width: Double = 2.0, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
262 | let newAttributes = attributes()
263 | .stroke(width: width, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:261:45: error: cannot find type 'AColor' in scope
259 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
260 | /// - Returns: A copy of the modified attributed string.
261 | func stroke(width: Double = 2.0, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
262 | let newAttributes = attributes()
263 | .stroke(width: width, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:309:56: error: cannot find type 'NSAttributedString' in scope
307 | /// - attachment: The text attachment that will be added to the attributed string.
308 | /// - Returns: A copy of the modified attributed string.
309 | func attachment(_ attachment: NSTextAttachment) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
310 | addingAttributes(Attributes().attachment(attachment))
311 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:309:35: error: cannot find type 'NSTextAttachment' in scope
307 | /// - attachment: The text attachment that will be added to the attributed string.
308 | /// - Returns: A copy of the modified attributed string.
309 | func attachment(_ attachment: NSTextAttachment) -> NSAttributedString {
| `- error: cannot find type 'NSTextAttachment' in scope
310 | addingAttributes(Attributes().attachment(attachment))
311 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:86:30: error: cannot find 'NSTextAttachment' in scope
84 | #if !os(watchOS)
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
| `- error: cannot find 'NSTextAttachment' in scope
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:34: error: cannot infer contextual base in reference to member 'init'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'init'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:48: error: cannot infer contextual base in reference to member 'zero'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'zero'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:61: error: cannot infer contextual base in reference to member 'init'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'init'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:16:64: error: cannot find type 'NSAttributedString' in scope
14 | /// - paragraphStyle: The paragraph style.
15 | /// - Returns: A copy of the modified attributed string.
16 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | addingAttribute(.paragraphStyle, value: paragraphStyle)
18 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:16:43: error: cannot find type 'NSParagraphStyle' in scope
14 | /// - paragraphStyle: The paragraph style.
15 | /// - Returns: A copy of the modified attributed string.
16 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> NSAttributedString {
| `- error: cannot find type 'NSParagraphStyle' in scope
17 | addingAttribute(.paragraphStyle, value: paragraphStyle)
18 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:24:53: error: cannot find type 'NSAttributedString' in scope
22 | /// - alignment: The text alignment.
23 | /// - Returns: A copy of the modified attributed string.
24 | func alignment(_ alignment: NSTextAlignment) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
25 | addingAttributes(attributes().alignment(alignment))
26 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:24:33: error: cannot find type 'NSTextAlignment' in scope
22 | /// - alignment: The text alignment.
23 | /// - Returns: A copy of the modified attributed string.
24 | func alignment(_ alignment: NSTextAlignment) -> NSAttributedString {
| `- error: cannot find type 'NSTextAlignment' in scope
25 | addingAttributes(attributes().alignment(alignment))
26 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:32:52: error: cannot find type 'NSAttributedString' in scope
30 | /// - indent: The first line head indent.
31 | /// - Returns: A copy of the modified attributed string.
32 | func firstLineHeadIndent(_ indent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
33 | addingAttributes(attributes().firstLineHeadIndent(indent))
34 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:32:40: error: cannot find type 'CGFloat' in scope
30 | /// - indent: The first line head indent.
31 | /// - Returns: A copy of the modified attributed string.
32 | func firstLineHeadIndent(_ indent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
33 | addingAttributes(attributes().firstLineHeadIndent(indent))
34 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:40:47: error: cannot find type 'NSAttributedString' in scope
38 | /// - headIndent: The head indent of the attributed string.
39 | /// - Returns: A copy of the modified attributed string.
40 | func headIndent(_ headIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
41 | addingAttributes(attributes().headIndent(headIndent))
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:40:35: error: cannot find type 'CGFloat' in scope
38 | /// - headIndent: The head indent of the attributed string.
39 | /// - Returns: A copy of the modified attributed string.
40 | func headIndent(_ headIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
41 | addingAttributes(attributes().headIndent(headIndent))
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:48:47: error: cannot find type 'NSAttributedString' in scope
46 | /// - tailIndent: The tail indent of the attributed string.
47 | /// - Returns: A copy of the modified attributed string.
48 | func tailIndent(_ tailIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
49 | addingAttributes(attributes().tailIndent(tailIndent))
50 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:48:35: error: cannot find type 'CGFloat' in scope
46 | /// - tailIndent: The tail indent of the attributed string.
47 | /// - Returns: A copy of the modified attributed string.
48 | func tailIndent(_ tailIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
49 | addingAttributes(attributes().tailIndent(tailIndent))
50 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:56:51: error: cannot find type 'NSAttributedString' in scope
54 | /// - height: The multiple line height as floating point number.
55 | /// - Returns: A copy of the modified attributed string.
56 | func lineHeightMultiple(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
57 | addingAttributes(attributes().lineHeightMultiple(height))
58 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:56:39: error: cannot find type 'CGFloat' in scope
54 | /// - height: The multiple line height as floating point number.
55 | /// - Returns: A copy of the modified attributed string.
56 | func lineHeightMultiple(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
57 | addingAttributes(attributes().lineHeightMultiple(height))
58 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:64:50: error: cannot find type 'NSAttributedString' in scope
62 | /// - height: The minimum line height as a floating point number.
63 | /// - Returns: A copy of the modified attributed string.
64 | func minimumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
65 | addingAttributes(attributes().minimumLineHeight(height))
66 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:64:38: error: cannot find type 'CGFloat' in scope
62 | /// - height: The minimum line height as a floating point number.
63 | /// - Returns: A copy of the modified attributed string.
64 | func minimumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
65 | addingAttributes(attributes().minimumLineHeight(height))
66 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:72:50: error: cannot find type 'NSAttributedString' in scope
70 | /// - height: The maximum line height as a floating point number.
71 | /// - Returns: A copy of the modified attributed string.
72 | func maximumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
73 | addingAttributes(attributes().maximumLineHeight(height))
74 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:72:38: error: cannot find type 'CGFloat' in scope
70 | /// - height: The maximum line height as a floating point number.
71 | /// - Returns: A copy of the modified attributed string.
72 | func maximumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
73 | addingAttributes(attributes().maximumLineHeight(height))
74 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:80:45: error: cannot find type 'NSAttributedString' in scope
78 | /// - spacing: The spacing as a floating point number.
79 | /// - Returns: A copy of the modified attributed string.
80 | func lineSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
81 | addingAttributes(attributes().lineSpacing(spacing))
82 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:80:33: error: cannot find type 'CGFloat' in scope
78 | /// - spacing: The spacing as a floating point number.
79 | /// - Returns: A copy of the modified attributed string.
80 | func lineSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
81 | addingAttributes(attributes().lineSpacing(spacing))
82 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:88:50: error: cannot find type 'NSAttributedString' in scope
86 | /// - spacing: The paragraph spacing as a floating point number.
87 | /// - Returns: A copy of the modified attributed string.
88 | func paragraphSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
89 | addingAttributes(attributes().paragraphSpacing(spacing))
90 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:88:38: error: cannot find type 'CGFloat' in scope
86 | /// - spacing: The paragraph spacing as a floating point number.
87 | /// - Returns: A copy of the modified attributed string.
88 | func paragraphSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
89 | addingAttributes(attributes().paragraphSpacing(spacing))
90 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:96:56: error: cannot find type 'NSAttributedString' in scope
94 | /// - spacing: The spacing as a floating point number.
95 | /// - Returns: A copy of the modified attributed string.
96 | func paragraphSpacingBefore(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
97 | addingAttributes(attributes().paragraphSpacingBefore(spacing))
98 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:96:44: error: cannot find type 'CGFloat' in scope
94 | /// - spacing: The spacing as a floating point number.
95 | /// - Returns: A copy of the modified attributed string.
96 | func paragraphSpacingBefore(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
97 | addingAttributes(attributes().paragraphSpacingBefore(spacing))
98 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:104:61: error: cannot find type 'NSAttributedString' in scope
102 | /// - lineBreakMode: The line break mode to use for the text.
103 | /// - Returns: A copy of the modified attributed string.
104 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
105 | addingAttributes(attributes().lineBreakMode(lineBreakMode))
106 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:104:41: error: cannot find type 'NSLineBreakMode' in scope
102 | /// - lineBreakMode: The line break mode to use for the text.
103 | /// - Returns: A copy of the modified attributed string.
104 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> NSAttributedString {
| `- error: cannot find type 'NSLineBreakMode' in scope
105 | addingAttributes(attributes().lineBreakMode(lineBreakMode))
106 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:112:79: error: cannot find type 'NSAttributedString' in scope
110 | /// - strategy: The line break strategy of the text.
111 | /// - Returns: A copy of the modified attributed string.
112 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
113 | addingAttributes(attributes().lineBreakStrategy(strategy))
114 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:112:40: error: cannot find type 'NSParagraphStyle' in scope
110 | /// - strategy: The line break strategy of the text.
111 | /// - Returns: A copy of the modified attributed string.
112 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> NSAttributedString {
| `- error: cannot find type 'NSParagraphStyle' in scope
113 | addingAttributes(attributes().lineBreakStrategy(strategy))
114 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:120:48: error: cannot find type 'NSAttributedString' in scope
118 | /// - factor: The hyphenation factor as a floating point number.
119 | /// - Returns: A copy of the modified attributed string.
120 | func hyphenationFactor(_ factor: Float) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
121 | addingAttributes(attributes().hyphenationFactor(factor))
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:129:68: error: cannot find type 'NSAttributedString' in scope
127 | /// - Returns: A copy of the modified attributed string.
128 | @available(iOS 15, macOS 13, watchOS 8, tvOS 15, *)
129 | func usesDefaultHyphenation(_ usesDefaultHyphenation: Bool) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
130 | addingAttributes(attributes().usesDefaultHyphenation(usesDefaultHyphenation))
131 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:138:69: error: cannot find type 'NSAttributedString' in scope
136 | /// before truncating text.
137 | /// - Returns: A copy of the modified attributed string.
138 | func allowsDefaultTighteningForTruncation(_ isAllowed: Bool) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
139 | addingAttributes(attributes().allowsDefaultTighteningForTruncation(isAllowed))
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:146:67: error: cannot find type 'NSAttributedString' in scope
144 | /// - direction: The new writing direction of the text.
145 | /// - Returns: A copy of the modified attributed string.
146 | func baseWritingDirection(_ direction: NSWritingDirection) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
147 | addingAttributes(attributes().baseWritingDirection(direction))
148 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:146:44: error: cannot find type 'NSWritingDirection' in scope
144 | /// - direction: The new writing direction of the text.
145 | /// - Returns: A copy of the modified attributed string.
146 | func baseWritingDirection(_ direction: NSWritingDirection) -> NSAttributedString {
| `- error: cannot find type 'NSWritingDirection' in scope
147 | addingAttributes(attributes().baseWritingDirection(direction))
148 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:77: error: cannot find type 'NSAttributedString' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:32: error: cannot find type 'NSTextTab' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'NSTextTab' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:61: error: cannot find type 'CGFloat' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
[10/27] Compiling NSAttributedStringBuilder AttributedStringBuilding+multiPlatformParagraphStyles.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:13:30: error: cannot find type 'NSAttributedString' in scope
11 | /// - key: The key of the attribute.
12 | /// - Returns: The current attribute for a given key.
13 | func attribute<T>(_ key: NSAttributedString.Key) -> T? {
| `- error: cannot find type 'NSAttributedString' in scope
14 | attributes()
15 | .attribute(key)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:22:32: error: cannot find type 'NSAttributedString' in scope
20 | /// This is a convenience method to easily create an attributed string from the current context.
21 | /// - Returns: The current context as attributed string.
22 | func attributedString() -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
23 | mutableAttributedString()
24 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:31:73: error: cannot find type 'NSAttributedString' in scope
29 | /// - value: The value of the attribute.
30 | /// - Returns: A copy of the modified attributed string.
31 | func addingAttribute(_ name: NSAttributedString.Key, value: Any) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
32 | addingAttributes([name: value])
33 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:31:34: error: cannot find type 'NSAttributedString' in scope
29 | /// - value: The value of the attribute.
30 | /// - Returns: A copy of the modified attributed string.
31 | func addingAttribute(_ name: NSAttributedString.Key, value: Any) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
32 | addingAttributes([name: value])
33 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:37:37: error: cannot find type 'NSMutableParagraphStyle' in scope
35 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
36 | /// - Returns: A copy of the current paragraph style.
37 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
38 | attributes()
39 | .mutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:46:47: error: cannot find type 'NSAttributedString' in scope
44 | /// - newString: The string that will be appended.
45 | /// - Returns: A copy of the modified attributed string.
46 | func addingString(_ newString: String) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
47 | addingAttributedString(NSAttributedString(string: newString))
48 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:56:39: error: cannot find type 'NSAttributedString' in scope
54 | /// - newString: The string will be appended to the current string.
55 | /// - Returns: A copy of the modified attributed string.
56 | func text(_ newString: String) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
57 | addingString(newString)
58 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:64:40: error: cannot find type 'NSAttributedString' in scope
62 | /// - kerning: The text kerning. A kerning of 0 means it is disabled.
63 | /// - Returns: A copy of the modified attributed string.
64 | func kerning(_ kerning: Double) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
65 | addingAttributes(Attributes().kerning(kerning))
66 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:72:51: error: cannot find type 'NSAttributedString' in scope
70 | /// - spacing: The type of `Spacing`. Default is `.standard` whitespace.
71 | /// - Returns: A copy of the modified attributed string.
72 | func space(_ spacing: Spacing = .standard) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
73 | switch spacing {
74 | case .standard:
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:95:32: error: cannot find type 'NSAttributedString' in scope
93 | /// Adds a non-breaking space at the end of the attributed string.
94 | /// - Returns: A copy of the modified attributed string.
95 | func nonBreakingSpace() -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
96 | space(.nonBreakingSpace)
97 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:101:23: error: cannot find type 'NSAttributedString' in scope
99 | /// Adds a newline at the end of the attributed string.
100 | /// - Returns: A copy of the modified attributed string.
101 | func newline() -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
102 | addingString("\n")
103 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:109:30: error: cannot find type 'NSAttributedString' in scope
107 | /// - url: The url for the link attribute.
108 | /// - Returns: A copy of the modified attributed string.
109 | func link(_ url: URL) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
110 | addingAttributes(Attributes().link(url))
111 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:109:22: error: cannot find type 'URL' in scope
107 | /// - url: The url for the link attribute.
108 | /// - Returns: A copy of the modified attributed string.
109 | func link(_ url: URL) -> NSAttributedString {
| `- error: cannot find type 'URL' in scope
110 | addingAttributes(Attributes().link(url))
111 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:117:46: error: cannot find type 'NSAttributedString' in scope
115 | /// - offset: The baseline offset.
116 | /// - Returns: A copy of the modified attributed string.
117 | func baselineOffset(_ offset: Double) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
118 | addingAttributes(Attributes().baselineOffset(offset))
119 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:125:42: error: cannot find type 'NSAttributedString' in scope
123 | /// - option: The ligature option. The font must support ligatures.
124 | /// - Returns: A copy of the modified attributed string.
125 | func ligature(_ option: Ligature) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
126 | addingAttributes(Attributes().ligature(option))
127 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:133:69: error: cannot find type 'NSAttributedString' in scope
131 | /// - style: The text effect style.
132 | /// - Returns: A copy of the modified attributed string.
133 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
134 | addingAttributes(Attributes().textEffect(style))
135 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:133:30: error: cannot find type 'NSAttributedString' in scope
131 | /// - style: The text effect style.
132 | /// - Returns: A copy of the modified attributed string.
133 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
134 | addingAttributes(Attributes().textEffect(style))
135 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:141:87: error: cannot find type 'NSAttributedString' in scope
139 | /// - direction: The direction options for string. See `WritingDirection` for options.
140 | /// - Returns: A copy of the modified attributed string.
141 | func writingDirection(_ direction: NSAttributedStringBuilder.WritingDirection) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
142 | addingAttributes(Attributes().writingDirection(direction))
143 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:153:78: error: cannot find type 'NSAttributedString' in scope
151 | /// - languageCode: The language code of the language.
152 | /// - Returns: A copy of the modified attributed string.
153 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
154 | addingAttributes(Attributes().language(languageCode))
155 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:164:69: error: cannot find type 'NSAttributedString' in scope
162 | /// - Returns: A copy of the modified attributed string.
163 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
164 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
165 | addingAttributes(Attributes().languageIdentifier(languageCode))
166 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:164:45: error: cannot find type 'Locale' in scope
162 | /// - Returns: A copy of the modified attributed string.
163 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
164 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> NSAttributedString {
| `- error: cannot find type 'Locale' in scope
165 | addingAttributes(Attributes().languageIdentifier(languageCode))
166 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:177:42: error: cannot find type 'NSAttributedString' in scope
175 | /// - Returns: A copy of the modified attributed string.
176 | @available(iOS 14, tvOS 14, watchOS 7, *)
177 | func tracking(_ tracking: Double) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
178 | addingAttributes(Attributes().tracking(tracking))
179 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:190:33: error: cannot find type 'NSAttributedString' in scope
188 | /// - font: The platform dependent font.
189 | /// - Returns: A copy of the modified attributed string.
190 | func font(_ font: AFont) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
191 | addingAttributes(Attributes().font(font))
192 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:190:23: error: cannot find type 'AFont' in scope
188 | /// - font: The platform dependent font.
189 | /// - Returns: A copy of the modified attributed string.
190 | func font(_ font: AFont) -> NSAttributedString {
| `- error: cannot find type 'AFont' in scope
191 | addingAttributes(Attributes().font(font))
192 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:198:46: error: cannot find type 'NSAttributedString' in scope
196 | /// - color: The new color of the text and images.
197 | /// - Returns: A copy of the modified attributed string.
198 | func foregroundColor(_ color: AColor) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
199 | addingAttributes(Attributes().foregroundColor(color))
200 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:198:35: error: cannot find type 'AColor' in scope
196 | /// - color: The new color of the text and images.
197 | /// - Returns: A copy of the modified attributed string.
198 | func foregroundColor(_ color: AColor) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
199 | addingAttributes(Attributes().foregroundColor(color))
200 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:206:46: error: cannot find type 'NSAttributedString' in scope
204 | /// - color: The new background color.
205 | /// - Returns: A copy of the modified attributed string.
206 | func backgroundColor(_ color: AColor) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
207 | addingAttributes(Attributes().backgroundColor(color))
208 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:206:35: error: cannot find type 'AColor' in scope
204 | /// - color: The new background color.
205 | /// - Returns: A copy of the modified attributed string.
206 | func backgroundColor(_ color: AColor) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
207 | addingAttributes(Attributes().backgroundColor(color))
208 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:82: error: cannot find type 'NSAttributedString' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:29: error: cannot find type 'NSUnderlineStyle' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSUnderlineStyle' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:215:64: error: cannot find type 'AColor' in scope
213 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
214 | /// - Returns: A copy of the modified attributed string.
215 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
216 | let newAttributes = attributes()
217 | .underline(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:86: error: cannot find type 'NSAttributedString' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:33: error: cannot find type 'NSUnderlineStyle' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSUnderlineStyle' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:228:68: error: cannot find type 'AColor' in scope
226 | /// Default is `nil`.
227 | /// - Returns: A copy of the modified attributed string.
228 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
229 | let newAttributes = attributes()
230 | .strikethrough(style, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:245:10: error: cannot find type 'NSAttributedString' in scope
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
245 | ) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
246 | let newAttributes = attributes()
247 | .shadow(offset: offset, blurRadius: blurRadius, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:242:17: error: cannot find type 'CGSize' in scope
240 | /// - Returns: A copy of the modified attributed string.
241 | func shadow(
242 | offset: CGSize = .init(width: 1, height: 1),
| `- error: cannot find type 'CGSize' in scope
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:244:16: error: cannot find type 'AColor' in scope
242 | offset: CGSize = .init(width: 1, height: 1),
243 | blurRadius: Double = 5.0,
244 | color: AColor? = nil
| `- error: cannot find type 'AColor' in scope
245 | ) -> NSAttributedString {
246 | let newAttributes = attributes()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:261:63: error: cannot find type 'NSAttributedString' in scope
259 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
260 | /// - Returns: A copy of the modified attributed string.
261 | func stroke(width: Double = 2.0, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
262 | let newAttributes = attributes()
263 | .stroke(width: width, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:261:45: error: cannot find type 'AColor' in scope
259 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
260 | /// - Returns: A copy of the modified attributed string.
261 | func stroke(width: Double = 2.0, color: AColor? = nil) -> NSAttributedString {
| `- error: cannot find type 'AColor' in scope
262 | let newAttributes = attributes()
263 | .stroke(width: width, color: color)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:309:56: error: cannot find type 'NSAttributedString' in scope
307 | /// - attachment: The text attachment that will be added to the attributed string.
308 | /// - Returns: A copy of the modified attributed string.
309 | func attachment(_ attachment: NSTextAttachment) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
310 | addingAttributes(Attributes().attachment(attachment))
311 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:309:35: error: cannot find type 'NSTextAttachment' in scope
307 | /// - attachment: The text attachment that will be added to the attributed string.
308 | /// - Returns: A copy of the modified attributed string.
309 | func attachment(_ attachment: NSTextAttachment) -> NSAttributedString {
| `- error: cannot find type 'NSTextAttachment' in scope
310 | addingAttributes(Attributes().attachment(attachment))
311 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:86:30: error: cannot find 'NSTextAttachment' in scope
84 | #if !os(watchOS)
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
| `- error: cannot find 'NSTextAttachment' in scope
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:34: error: cannot infer contextual base in reference to member 'init'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'init'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:48: error: cannot infer contextual base in reference to member 'zero'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'zero'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatform.swift:87:61: error: cannot infer contextual base in reference to member 'init'
85 | case let .custom(width):
86 | let attachment = NSTextAttachment()
87 | attachment.bounds = .init(origin: .zero, size: .init(width: width, height: 0.001))
| `- error: cannot infer contextual base in reference to member 'init'
88 | return addingAttributedString(NSAttributedString(attachment: attachment))
89 | #endif
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:16:64: error: cannot find type 'NSAttributedString' in scope
14 | /// - paragraphStyle: The paragraph style.
15 | /// - Returns: A copy of the modified attributed string.
16 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | addingAttribute(.paragraphStyle, value: paragraphStyle)
18 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:16:43: error: cannot find type 'NSParagraphStyle' in scope
14 | /// - paragraphStyle: The paragraph style.
15 | /// - Returns: A copy of the modified attributed string.
16 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> NSAttributedString {
| `- error: cannot find type 'NSParagraphStyle' in scope
17 | addingAttribute(.paragraphStyle, value: paragraphStyle)
18 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:24:53: error: cannot find type 'NSAttributedString' in scope
22 | /// - alignment: The text alignment.
23 | /// - Returns: A copy of the modified attributed string.
24 | func alignment(_ alignment: NSTextAlignment) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
25 | addingAttributes(attributes().alignment(alignment))
26 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:24:33: error: cannot find type 'NSTextAlignment' in scope
22 | /// - alignment: The text alignment.
23 | /// - Returns: A copy of the modified attributed string.
24 | func alignment(_ alignment: NSTextAlignment) -> NSAttributedString {
| `- error: cannot find type 'NSTextAlignment' in scope
25 | addingAttributes(attributes().alignment(alignment))
26 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:32:52: error: cannot find type 'NSAttributedString' in scope
30 | /// - indent: The first line head indent.
31 | /// - Returns: A copy of the modified attributed string.
32 | func firstLineHeadIndent(_ indent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
33 | addingAttributes(attributes().firstLineHeadIndent(indent))
34 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:32:40: error: cannot find type 'CGFloat' in scope
30 | /// - indent: The first line head indent.
31 | /// - Returns: A copy of the modified attributed string.
32 | func firstLineHeadIndent(_ indent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
33 | addingAttributes(attributes().firstLineHeadIndent(indent))
34 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:40:47: error: cannot find type 'NSAttributedString' in scope
38 | /// - headIndent: The head indent of the attributed string.
39 | /// - Returns: A copy of the modified attributed string.
40 | func headIndent(_ headIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
41 | addingAttributes(attributes().headIndent(headIndent))
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:40:35: error: cannot find type 'CGFloat' in scope
38 | /// - headIndent: The head indent of the attributed string.
39 | /// - Returns: A copy of the modified attributed string.
40 | func headIndent(_ headIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
41 | addingAttributes(attributes().headIndent(headIndent))
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:48:47: error: cannot find type 'NSAttributedString' in scope
46 | /// - tailIndent: The tail indent of the attributed string.
47 | /// - Returns: A copy of the modified attributed string.
48 | func tailIndent(_ tailIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
49 | addingAttributes(attributes().tailIndent(tailIndent))
50 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:48:35: error: cannot find type 'CGFloat' in scope
46 | /// - tailIndent: The tail indent of the attributed string.
47 | /// - Returns: A copy of the modified attributed string.
48 | func tailIndent(_ tailIndent: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
49 | addingAttributes(attributes().tailIndent(tailIndent))
50 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:56:51: error: cannot find type 'NSAttributedString' in scope
54 | /// - height: The multiple line height as floating point number.
55 | /// - Returns: A copy of the modified attributed string.
56 | func lineHeightMultiple(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
57 | addingAttributes(attributes().lineHeightMultiple(height))
58 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:56:39: error: cannot find type 'CGFloat' in scope
54 | /// - height: The multiple line height as floating point number.
55 | /// - Returns: A copy of the modified attributed string.
56 | func lineHeightMultiple(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
57 | addingAttributes(attributes().lineHeightMultiple(height))
58 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:64:50: error: cannot find type 'NSAttributedString' in scope
62 | /// - height: The minimum line height as a floating point number.
63 | /// - Returns: A copy of the modified attributed string.
64 | func minimumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
65 | addingAttributes(attributes().minimumLineHeight(height))
66 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:64:38: error: cannot find type 'CGFloat' in scope
62 | /// - height: The minimum line height as a floating point number.
63 | /// - Returns: A copy of the modified attributed string.
64 | func minimumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
65 | addingAttributes(attributes().minimumLineHeight(height))
66 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:72:50: error: cannot find type 'NSAttributedString' in scope
70 | /// - height: The maximum line height as a floating point number.
71 | /// - Returns: A copy of the modified attributed string.
72 | func maximumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
73 | addingAttributes(attributes().maximumLineHeight(height))
74 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:72:38: error: cannot find type 'CGFloat' in scope
70 | /// - height: The maximum line height as a floating point number.
71 | /// - Returns: A copy of the modified attributed string.
72 | func maximumLineHeight(_ height: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
73 | addingAttributes(attributes().maximumLineHeight(height))
74 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:80:45: error: cannot find type 'NSAttributedString' in scope
78 | /// - spacing: The spacing as a floating point number.
79 | /// - Returns: A copy of the modified attributed string.
80 | func lineSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
81 | addingAttributes(attributes().lineSpacing(spacing))
82 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:80:33: error: cannot find type 'CGFloat' in scope
78 | /// - spacing: The spacing as a floating point number.
79 | /// - Returns: A copy of the modified attributed string.
80 | func lineSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
81 | addingAttributes(attributes().lineSpacing(spacing))
82 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:88:50: error: cannot find type 'NSAttributedString' in scope
86 | /// - spacing: The paragraph spacing as a floating point number.
87 | /// - Returns: A copy of the modified attributed string.
88 | func paragraphSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
89 | addingAttributes(attributes().paragraphSpacing(spacing))
90 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:88:38: error: cannot find type 'CGFloat' in scope
86 | /// - spacing: The paragraph spacing as a floating point number.
87 | /// - Returns: A copy of the modified attributed string.
88 | func paragraphSpacing(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
89 | addingAttributes(attributes().paragraphSpacing(spacing))
90 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:96:56: error: cannot find type 'NSAttributedString' in scope
94 | /// - spacing: The spacing as a floating point number.
95 | /// - Returns: A copy of the modified attributed string.
96 | func paragraphSpacingBefore(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
97 | addingAttributes(attributes().paragraphSpacingBefore(spacing))
98 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:96:44: error: cannot find type 'CGFloat' in scope
94 | /// - spacing: The spacing as a floating point number.
95 | /// - Returns: A copy of the modified attributed string.
96 | func paragraphSpacingBefore(_ spacing: CGFloat) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
97 | addingAttributes(attributes().paragraphSpacingBefore(spacing))
98 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:104:61: error: cannot find type 'NSAttributedString' in scope
102 | /// - lineBreakMode: The line break mode to use for the text.
103 | /// - Returns: A copy of the modified attributed string.
104 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
105 | addingAttributes(attributes().lineBreakMode(lineBreakMode))
106 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:104:41: error: cannot find type 'NSLineBreakMode' in scope
102 | /// - lineBreakMode: The line break mode to use for the text.
103 | /// - Returns: A copy of the modified attributed string.
104 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> NSAttributedString {
| `- error: cannot find type 'NSLineBreakMode' in scope
105 | addingAttributes(attributes().lineBreakMode(lineBreakMode))
106 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:112:79: error: cannot find type 'NSAttributedString' in scope
110 | /// - strategy: The line break strategy of the text.
111 | /// - Returns: A copy of the modified attributed string.
112 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
113 | addingAttributes(attributes().lineBreakStrategy(strategy))
114 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:112:40: error: cannot find type 'NSParagraphStyle' in scope
110 | /// - strategy: The line break strategy of the text.
111 | /// - Returns: A copy of the modified attributed string.
112 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> NSAttributedString {
| `- error: cannot find type 'NSParagraphStyle' in scope
113 | addingAttributes(attributes().lineBreakStrategy(strategy))
114 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:120:48: error: cannot find type 'NSAttributedString' in scope
118 | /// - factor: The hyphenation factor as a floating point number.
119 | /// - Returns: A copy of the modified attributed string.
120 | func hyphenationFactor(_ factor: Float) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
121 | addingAttributes(attributes().hyphenationFactor(factor))
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:129:68: error: cannot find type 'NSAttributedString' in scope
127 | /// - Returns: A copy of the modified attributed string.
128 | @available(iOS 15, macOS 13, watchOS 8, tvOS 15, *)
129 | func usesDefaultHyphenation(_ usesDefaultHyphenation: Bool) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
130 | addingAttributes(attributes().usesDefaultHyphenation(usesDefaultHyphenation))
131 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:138:69: error: cannot find type 'NSAttributedString' in scope
136 | /// before truncating text.
137 | /// - Returns: A copy of the modified attributed string.
138 | func allowsDefaultTighteningForTruncation(_ isAllowed: Bool) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
139 | addingAttributes(attributes().allowsDefaultTighteningForTruncation(isAllowed))
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:146:67: error: cannot find type 'NSAttributedString' in scope
144 | /// - direction: The new writing direction of the text.
145 | /// - Returns: A copy of the modified attributed string.
146 | func baseWritingDirection(_ direction: NSWritingDirection) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
147 | addingAttributes(attributes().baseWritingDirection(direction))
148 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:146:44: error: cannot find type 'NSWritingDirection' in scope
144 | /// - direction: The new writing direction of the text.
145 | /// - Returns: A copy of the modified attributed string.
146 | func baseWritingDirection(_ direction: NSWritingDirection) -> NSAttributedString {
| `- error: cannot find type 'NSWritingDirection' in scope
147 | addingAttributes(attributes().baseWritingDirection(direction))
148 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:77: error: cannot find type 'NSAttributedString' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:32: error: cannot find type 'NSTextTab' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'NSTextTab' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AttributedStringBuilding+multiPlatformParagraphStyles.swift:155:61: error: cannot find type 'CGFloat' in scope
153 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
154 | /// - Returns: A copy of the modified attributed string.
155 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> NSAttributedString {
| `- error: cannot find type 'CGFloat' in scope
156 | addingAttributes(attributes().tabStops(tabStops, defaultInterval: defaultInterval))
157 | }
[11/27] Compiling NSAttributedStringBuilder String+AttributedStringBuilding.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:17:46: error: cannot find type 'NSMutableAttributedString' in scope
15 | /// Returns the text as a mutable attributed string.
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
18 | NSMutableAttributedString(string: self)
19 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:25:66: error: cannot find type 'NSAttributedString' in scope
23 | /// - newAttributes: The new attributes will be added to the attributed string.
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | NSAttributedString(string: self, attributes: newAttributes)
27 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:76: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:53: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:54:39: error: cannot find type 'NSMutableAttributedString' in scope
52 | /// Get the current attributed string as mutable attributed string.
53 | /// - Returns: A copy of the current context as a mutable attributed string.
54 | func mutableAttributedString() -> NSMutableAttributedString
| `- error: cannot find type 'NSMutableAttributedString' in scope
55 |
56 | /// Adds new attributes to the current attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:62:59: error: cannot find type 'NSAttributedString' in scope
60 | /// - newAttributes: The new attributes that will be added to the string.
61 | /// - Returns: A copy of the modified attributed string.
62 | func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
63 |
64 | /// Adds an attributed string with its attributes to the current string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:69: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:46: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
[12/27] Compiling NSAttributedStringBuilder LanguageCode.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:17:46: error: cannot find type 'NSMutableAttributedString' in scope
15 | /// Returns the text as a mutable attributed string.
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
18 | NSMutableAttributedString(string: self)
19 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:25:66: error: cannot find type 'NSAttributedString' in scope
23 | /// - newAttributes: The new attributes will be added to the attributed string.
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | NSAttributedString(string: self, attributes: newAttributes)
27 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:76: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:53: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:54:39: error: cannot find type 'NSMutableAttributedString' in scope
52 | /// Get the current attributed string as mutable attributed string.
53 | /// - Returns: A copy of the current context as a mutable attributed string.
54 | func mutableAttributedString() -> NSMutableAttributedString
| `- error: cannot find type 'NSMutableAttributedString' in scope
55 |
56 | /// Adds new attributes to the current attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:62:59: error: cannot find type 'NSAttributedString' in scope
60 | /// - newAttributes: The new attributes that will be added to the string.
61 | /// - Returns: A copy of the modified attributed string.
62 | func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
63 |
64 | /// Adds an attributed string with its attributes to the current string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:69: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:46: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
[13/27] Compiling NSAttributedStringBuilder Ligature.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:17:46: error: cannot find type 'NSMutableAttributedString' in scope
15 | /// Returns the text as a mutable attributed string.
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
18 | NSMutableAttributedString(string: self)
19 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:25:66: error: cannot find type 'NSAttributedString' in scope
23 | /// - newAttributes: The new attributes will be added to the attributed string.
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | NSAttributedString(string: self, attributes: newAttributes)
27 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:76: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:33:53: error: cannot find type 'NSAttributedString' in scope
31 | /// - newString: The attributed string will be appended to the current text.
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
34 | NSAttributedString(string: self).addingAttributedString(newString)
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:54:39: error: cannot find type 'NSMutableAttributedString' in scope
52 | /// Get the current attributed string as mutable attributed string.
53 | /// - Returns: A copy of the current context as a mutable attributed string.
54 | func mutableAttributedString() -> NSMutableAttributedString
| `- error: cannot find type 'NSMutableAttributedString' in scope
55 |
56 | /// Adds new attributes to the current attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:62:59: error: cannot find type 'NSAttributedString' in scope
60 | /// - newAttributes: The new attributes that will be added to the string.
61 | /// - Returns: A copy of the modified attributed string.
62 | func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
63 |
64 | /// Adds an attributed string with its attributes to the current string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:69: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:71:46: error: cannot find type 'NSAttributedString' in scope
69 | /// - newString: The new attributed string that is appended to the current context.
70 | /// - Returns: A copy of the modified attributed string.
71 | func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString
| `- error: cannot find type 'NSAttributedString' in scope
72 | }
73 |
[14/27] Compiling NSAttributedStringBuilder WritingDirection.swift
[15/27] Compiling NSAttributedStringBuilder resource_bundle_accessor.swift
[16/27] Compiling NSAttributedStringBuilder NSAttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:9:59: error: missing argument for parameter 'string' in call
7 |
8 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
9 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
10 | result.append(element)
11 | }
Foundation.NSMutableAttributedString:16:21: note: 'init(string:)' declared here
14 | open func endEditing()
15 | override open func copy(with zone: NSZone? = nil) -> Any
16 | override public init(string: String)
| `- note: 'init(string:)' declared here
17 | override public init(string: String, attributes attrs: [NSAttributedString.Key : Any]? = nil)
18 | override public init(attributedString: NSAttributedString)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:15:41: error: missing argument for parameter #1 in call
13 |
14 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
15 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
16 | }
17 |
:
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:26: error: reference to member 'newline' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: reference to member 'newline' cannot be resolved without a contextual type
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:26: error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
9 | }
10 |
[17/27] Compiling NSAttributedStringBuilder Newline.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:9:59: error: missing argument for parameter 'string' in call
7 |
8 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
9 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
10 | result.append(element)
11 | }
Foundation.NSMutableAttributedString:16:21: note: 'init(string:)' declared here
14 | open func endEditing()
15 | override open func copy(with zone: NSZone? = nil) -> Any
16 | override public init(string: String)
| `- note: 'init(string:)' declared here
17 | override public init(string: String, attributes attrs: [NSAttributedString.Key : Any]? = nil)
18 | override public init(attributedString: NSAttributedString)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:15:41: error: missing argument for parameter #1 in call
13 |
14 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
15 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
16 | }
17 |
:
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:26: error: reference to member 'newline' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: reference to member 'newline' cannot be resolved without a contextual type
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:26: error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
9 | }
10 |
[18/27] Compiling NSAttributedStringBuilder NonBreakingSpace.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:9:59: error: missing argument for parameter 'string' in call
7 |
8 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
9 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
10 | result.append(element)
11 | }
Foundation.NSMutableAttributedString:16:21: note: 'init(string:)' declared here
14 | open func endEditing()
15 | override open func copy(with zone: NSZone? = nil) -> Any
16 | override public init(string: String)
| `- note: 'init(string:)' declared here
17 | override public init(string: String, attributes attrs: [NSAttributedString.Key : Any]? = nil)
18 | override public init(attributedString: NSAttributedString)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:15:41: error: missing argument for parameter #1 in call
13 |
14 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
15 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
16 | }
17 |
:
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Newline.swift:8:26: error: reference to member 'newline' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a newline.
7 | public func Newline() -> NSAttributedString {
8 | NSAttributedString().newline()
| `- error: reference to member 'newline' cannot be resolved without a contextual type
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:24: error: missing argument for parameter #1 in call
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: missing argument for parameter #1 in call
9 | }
10 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NonBreakingSpace.swift:8:26: error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
6 | /// - Returns: An attributed string with a non-breaking space.
7 | public func NonBreakingSpace() -> NSAttributedString {
8 | NSAttributedString().nonBreakingSpace()
| `- error: reference to member 'nonBreakingSpace' cannot be resolved without a contextual type
9 | }
10 |
[19/27] Compiling NSAttributedStringBuilder Space.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:24: error: missing argument for parameter #1 in call
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: missing argument for parameter #1 in call
11 | }
12 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:26: error: reference to member 'space' cannot be resolved without a contextual type
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: reference to member 'space' cannot be resolved without a contextual type
11 | }
12 |
[20/27] Compiling NSAttributedStringBuilder Spacing.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:24: error: missing argument for parameter #1 in call
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: missing argument for parameter #1 in call
11 | }
12 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:26: error: reference to member 'space' cannot be resolved without a contextual type
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: reference to member 'space' cannot be resolved without a contextual type
11 | }
12 |
[21/27] Compiling NSAttributedStringBuilder SpellingState.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:24: error: missing argument for parameter #1 in call
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: missing argument for parameter #1 in call
11 | }
12 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:34:17: note: 'init(_:)' declared here
32 |
33 | /// Initializes an attributed string from given attributed strings provided by the result builder.
34 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
35 | self.init(attributedString: builder())
36 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Space.swift:10:26: error: reference to member 'space' cannot be resolved without a contextual type
8 | /// - Returns: An attributed string of a whitespace.
9 | public func Space(_ spacing: Spacing = .standard) -> NSAttributedString {
10 | NSAttributedString().space(spacing)
| `- error: reference to member 'space' cannot be resolved without a contextual type
11 | }
12 |
[22/27] Compiling NSAttributedStringBuilder Attributes+iOS.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:13:30: error: cannot find type 'NSAttributedString' in scope
11 | /// - key: The key of the attribute.
12 | /// - Returns: The attribute for a given key.
13 | func attribute<T>(_ key: NSAttributedString.Key) -> T? {
| `- error: cannot find type 'NSAttributedString' in scope
14 | self[key] as? T
15 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:31:33: error: cannot find type 'NSAttributedString' in scope
29 | /// - value: The new value that is set for the provided key.
30 | /// - Returns: The modified attributes.
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
32 | var newAttributes = self
33 | newAttributes[key] = value
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:59:22: error: cannot find type 'URL' in scope
57 | /// - url: The url for the link attribute.
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
| `- error: cannot find type 'URL' in scope
60 | addingAttribute(.link, value: url as NSURL)
61 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:83:30: error: cannot find type 'NSAttributedString' in scope
81 | /// - style: The text effect style.
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
84 | addingAttribute(.textEffect, value: style as NSString)
85 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:114:45: error: cannot find type 'Locale' in scope
112 | /// - Returns: The modified attributes.
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
| `- error: cannot find type 'Locale' in scope
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
116 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:140:23: error: cannot find type 'AFont' in scope
138 | /// - font: The platform dependent font.
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
| `- error: cannot find type 'AFont' in scope
141 | addingAttribute(.font, value: font)
142 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:148:35: error: cannot find type 'AColor' in scope
146 | /// - color: The new color of the text and images.
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
149 | addingAttribute(.foregroundColor, value: color)
150 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:156:35: error: cannot find type 'AColor' in scope
154 | /// - color: The new background color.
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
157 | addingAttribute(.backgroundColor, value: color)
158 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:29: error: cannot find type 'NSUnderlineStyle' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:64: error: cannot find type 'AColor' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:33: error: cannot find type 'NSUnderlineStyle' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:68: error: cannot find type 'AColor' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:196:17: error: cannot find type 'CGSize' in scope
194 | /// - Returns: The modified attributes.
195 | func shadow(
196 | offset: CGSize = .init(width: 1, height: 1),
| `- error: cannot find type 'CGSize' in scope
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:198:16: error: cannot find type 'AColor' in scope
196 | offset: CGSize = .init(width: 1, height: 1),
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
| `- error: cannot find type 'AColor' in scope
199 | ) -> Attributes {
200 | let shadow = NSShadow()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:219:45: error: cannot find type 'AColor' in scope
217 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
218 | /// - Returns: The modified attributes.
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:237:35: error: cannot find type 'NSTextAttachment' in scope
235 | /// - attachment: The text attachment that will be added to the attributes.
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
| `- error: cannot find type 'NSTextAttachment' in scope
238 | addingAttribute(.attachment, value: attachment)
239 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:33:30: error: cannot assign value of type 'Any' to subscript of type 'Value'
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
32 | var newAttributes = self
33 | newAttributes[key] = value
| `- error: cannot assign value of type 'Any' to subscript of type 'Value'
34 | return newAttributes
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:35: error: cannot find type 'NSParagraphStyle' in scope
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot find type 'NSParagraphStyle' in scope
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:54: error: type of expression is ambiguous without a type annotation
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: type of expression is ambiguous without a type annotation
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:42: error: cannot find 'NSNumber' in scope
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:24: error: type 'Key' has no member 'underlineStyle'
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'underlineStyle'
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:168:24: error: type 'Key' has no member 'underlineColor'
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
168 | newAttributes[.underlineColor] = color
| `- error: type 'Key' has no member 'underlineColor'
169 |
170 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:46: error: cannot find 'NSNumber' in scope
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:24: error: type 'Key' has no member 'strikethroughStyle'
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'strikethroughStyle'
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:182:24: error: type 'Key' has no member 'strikethroughColor'
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
182 | newAttributes[.strikethroughColor] = color
| `- error: type 'Key' has no member 'strikethroughColor'
183 |
184 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:200:22: error: cannot find 'NSShadow' in scope
198 | color: AColor? = nil
199 | ) -> Attributes {
200 | let shadow = NSShadow()
| `- error: cannot find 'NSShadow' in scope
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:202:35: error: cannot find 'CGFloat' in scope
200 | let shadow = NSShadow()
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
| `- error: cannot find 'CGFloat' in scope
203 | shadow.shadowColor = color
204 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:39: error: cannot find 'NSNumber' in scope
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: cannot find 'NSNumber' in scope
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:24: error: type 'Key' has no member 'strokeWidth'
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: type 'Key' has no member 'strokeWidth'
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:222:24: error: type 'Key' has no member 'strokeColor'
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
222 | newAttributes[.strokeColor] = color
| `- error: type 'Key' has no member 'strokeColor'
223 |
224 | return newAttributes
[23/27] Compiling NSAttributedStringBuilder Attributes+macOS.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:13:30: error: cannot find type 'NSAttributedString' in scope
11 | /// - key: The key of the attribute.
12 | /// - Returns: The attribute for a given key.
13 | func attribute<T>(_ key: NSAttributedString.Key) -> T? {
| `- error: cannot find type 'NSAttributedString' in scope
14 | self[key] as? T
15 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:31:33: error: cannot find type 'NSAttributedString' in scope
29 | /// - value: The new value that is set for the provided key.
30 | /// - Returns: The modified attributes.
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
32 | var newAttributes = self
33 | newAttributes[key] = value
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:59:22: error: cannot find type 'URL' in scope
57 | /// - url: The url for the link attribute.
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
| `- error: cannot find type 'URL' in scope
60 | addingAttribute(.link, value: url as NSURL)
61 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:83:30: error: cannot find type 'NSAttributedString' in scope
81 | /// - style: The text effect style.
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
84 | addingAttribute(.textEffect, value: style as NSString)
85 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:114:45: error: cannot find type 'Locale' in scope
112 | /// - Returns: The modified attributes.
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
| `- error: cannot find type 'Locale' in scope
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
116 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:140:23: error: cannot find type 'AFont' in scope
138 | /// - font: The platform dependent font.
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
| `- error: cannot find type 'AFont' in scope
141 | addingAttribute(.font, value: font)
142 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:148:35: error: cannot find type 'AColor' in scope
146 | /// - color: The new color of the text and images.
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
149 | addingAttribute(.foregroundColor, value: color)
150 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:156:35: error: cannot find type 'AColor' in scope
154 | /// - color: The new background color.
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
157 | addingAttribute(.backgroundColor, value: color)
158 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:29: error: cannot find type 'NSUnderlineStyle' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:64: error: cannot find type 'AColor' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:33: error: cannot find type 'NSUnderlineStyle' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:68: error: cannot find type 'AColor' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:196:17: error: cannot find type 'CGSize' in scope
194 | /// - Returns: The modified attributes.
195 | func shadow(
196 | offset: CGSize = .init(width: 1, height: 1),
| `- error: cannot find type 'CGSize' in scope
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:198:16: error: cannot find type 'AColor' in scope
196 | offset: CGSize = .init(width: 1, height: 1),
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
| `- error: cannot find type 'AColor' in scope
199 | ) -> Attributes {
200 | let shadow = NSShadow()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:219:45: error: cannot find type 'AColor' in scope
217 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
218 | /// - Returns: The modified attributes.
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:237:35: error: cannot find type 'NSTextAttachment' in scope
235 | /// - attachment: The text attachment that will be added to the attributes.
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
| `- error: cannot find type 'NSTextAttachment' in scope
238 | addingAttribute(.attachment, value: attachment)
239 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:33:30: error: cannot assign value of type 'Any' to subscript of type 'Value'
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
32 | var newAttributes = self
33 | newAttributes[key] = value
| `- error: cannot assign value of type 'Any' to subscript of type 'Value'
34 | return newAttributes
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:35: error: cannot find type 'NSParagraphStyle' in scope
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot find type 'NSParagraphStyle' in scope
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:54: error: type of expression is ambiguous without a type annotation
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: type of expression is ambiguous without a type annotation
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:42: error: cannot find 'NSNumber' in scope
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:24: error: type 'Key' has no member 'underlineStyle'
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'underlineStyle'
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:168:24: error: type 'Key' has no member 'underlineColor'
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
168 | newAttributes[.underlineColor] = color
| `- error: type 'Key' has no member 'underlineColor'
169 |
170 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:46: error: cannot find 'NSNumber' in scope
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:24: error: type 'Key' has no member 'strikethroughStyle'
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'strikethroughStyle'
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:182:24: error: type 'Key' has no member 'strikethroughColor'
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
182 | newAttributes[.strikethroughColor] = color
| `- error: type 'Key' has no member 'strikethroughColor'
183 |
184 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:200:22: error: cannot find 'NSShadow' in scope
198 | color: AColor? = nil
199 | ) -> Attributes {
200 | let shadow = NSShadow()
| `- error: cannot find 'NSShadow' in scope
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:202:35: error: cannot find 'CGFloat' in scope
200 | let shadow = NSShadow()
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
| `- error: cannot find 'CGFloat' in scope
203 | shadow.shadowColor = color
204 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:39: error: cannot find 'NSNumber' in scope
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: cannot find 'NSNumber' in scope
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:24: error: type 'Key' has no member 'strokeWidth'
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: type 'Key' has no member 'strokeWidth'
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:222:24: error: type 'Key' has no member 'strokeColor'
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
222 | newAttributes[.strokeColor] = color
| `- error: type 'Key' has no member 'strokeColor'
223 |
224 | return newAttributes
[24/27] Compiling NSAttributedStringBuilder Attributes+multiPlatform.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:13:30: error: cannot find type 'NSAttributedString' in scope
11 | /// - key: The key of the attribute.
12 | /// - Returns: The attribute for a given key.
13 | func attribute<T>(_ key: NSAttributedString.Key) -> T? {
| `- error: cannot find type 'NSAttributedString' in scope
14 | self[key] as? T
15 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:31:33: error: cannot find type 'NSAttributedString' in scope
29 | /// - value: The new value that is set for the provided key.
30 | /// - Returns: The modified attributes.
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
32 | var newAttributes = self
33 | newAttributes[key] = value
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:59:22: error: cannot find type 'URL' in scope
57 | /// - url: The url for the link attribute.
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
| `- error: cannot find type 'URL' in scope
60 | addingAttribute(.link, value: url as NSURL)
61 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:83:30: error: cannot find type 'NSAttributedString' in scope
81 | /// - style: The text effect style.
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
| `- error: cannot find type 'NSAttributedString' in scope
84 | addingAttribute(.textEffect, value: style as NSString)
85 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:114:45: error: cannot find type 'Locale' in scope
112 | /// - Returns: The modified attributes.
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
| `- error: cannot find type 'Locale' in scope
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
116 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:140:23: error: cannot find type 'AFont' in scope
138 | /// - font: The platform dependent font.
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
| `- error: cannot find type 'AFont' in scope
141 | addingAttribute(.font, value: font)
142 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:148:35: error: cannot find type 'AColor' in scope
146 | /// - color: The new color of the text and images.
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
149 | addingAttribute(.foregroundColor, value: color)
150 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:156:35: error: cannot find type 'AColor' in scope
154 | /// - color: The new background color.
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
| `- error: cannot find type 'AColor' in scope
157 | addingAttribute(.backgroundColor, value: color)
158 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:29: error: cannot find type 'NSUnderlineStyle' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:165:64: error: cannot find type 'AColor' in scope
163 | /// - color: The color of the underline. The `foregroundColor` is used when no color is set. Default is `nil`.
164 | /// - Returns: The modified attributes.
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:33: error: cannot find type 'NSUnderlineStyle' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'NSUnderlineStyle' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:179:68: error: cannot find type 'AColor' in scope
177 | /// Default is `nil`.
178 | /// - Returns: The modified attributes.
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:196:17: error: cannot find type 'CGSize' in scope
194 | /// - Returns: The modified attributes.
195 | func shadow(
196 | offset: CGSize = .init(width: 1, height: 1),
| `- error: cannot find type 'CGSize' in scope
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:198:16: error: cannot find type 'AColor' in scope
196 | offset: CGSize = .init(width: 1, height: 1),
197 | blurRadius: Double = 5.0,
198 | color: AColor? = nil
| `- error: cannot find type 'AColor' in scope
199 | ) -> Attributes {
200 | let shadow = NSShadow()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:219:45: error: cannot find type 'AColor' in scope
217 | /// - color: The color of the stroke. When no color is set, the `foregroundColor` is used. Default is `nil`.
218 | /// - Returns: The modified attributes.
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
| `- error: cannot find type 'AColor' in scope
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:237:35: error: cannot find type 'NSTextAttachment' in scope
235 | /// - attachment: The text attachment that will be added to the attributes.
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
| `- error: cannot find type 'NSTextAttachment' in scope
238 | addingAttribute(.attachment, value: attachment)
239 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:33:30: error: cannot assign value of type 'Any' to subscript of type 'Value'
31 | func addingAttribute(_ key: NSAttributedString.Key, value: Any) -> Attributes {
32 | var newAttributes = self
33 | newAttributes[key] = value
| `- error: cannot assign value of type 'Any' to subscript of type 'Value'
34 | return newAttributes
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:35: error: cannot find type 'NSParagraphStyle' in scope
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot find type 'NSParagraphStyle' in scope
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:40:54: error: type of expression is ambiguous without a type annotation
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: type of expression is ambiguous without a type annotation
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:42: error: cannot find 'NSNumber' in scope
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:167:24: error: type 'Key' has no member 'underlineStyle'
165 | func underline(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'underlineStyle'
168 | newAttributes[.underlineColor] = color
169 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:168:24: error: type 'Key' has no member 'underlineColor'
166 | var newAttributes = self
167 | newAttributes[.underlineStyle] = NSNumber(value: style.rawValue)
168 | newAttributes[.underlineColor] = color
| `- error: type 'Key' has no member 'underlineColor'
169 |
170 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:46: error: cannot find 'NSNumber' in scope
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: cannot find 'NSNumber' in scope
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:181:24: error: type 'Key' has no member 'strikethroughStyle'
179 | func strikethrough(_ style: NSUnderlineStyle = .single, color: AColor? = nil) -> Attributes {
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
| `- error: type 'Key' has no member 'strikethroughStyle'
182 | newAttributes[.strikethroughColor] = color
183 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:182:24: error: type 'Key' has no member 'strikethroughColor'
180 | var newAttributes = self
181 | newAttributes[.strikethroughStyle] = NSNumber(value: style.rawValue)
182 | newAttributes[.strikethroughColor] = color
| `- error: type 'Key' has no member 'strikethroughColor'
183 |
184 | return newAttributes
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:200:22: error: cannot find 'NSShadow' in scope
198 | color: AColor? = nil
199 | ) -> Attributes {
200 | let shadow = NSShadow()
| `- error: cannot find 'NSShadow' in scope
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:202:35: error: cannot find 'CGFloat' in scope
200 | let shadow = NSShadow()
201 | shadow.shadowOffset = offset
202 | shadow.shadowBlurRadius = CGFloat(blurRadius)
| `- error: cannot find 'CGFloat' in scope
203 | shadow.shadowColor = color
204 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:39: error: cannot find 'NSNumber' in scope
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: cannot find 'NSNumber' in scope
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:221:24: error: type 'Key' has no member 'strokeWidth'
219 | func stroke(width: Double = 2.0, color: AColor? = nil) -> Attributes {
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
| `- error: type 'Key' has no member 'strokeWidth'
222 | newAttributes[.strokeColor] = color
223 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:222:24: error: type 'Key' has no member 'strokeColor'
220 | var newAttributes = self
221 | newAttributes[.strokeWidth] = NSNumber(value: width)
222 | newAttributes[.strokeColor] = color
| `- error: type 'Key' has no member 'strokeColor'
223 |
224 | return newAttributes
[25/27] Compiling NSAttributedStringBuilder Attributes+multiPlatformParagraphStyles.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:15:43: error: cannot find type 'NSParagraphStyle' in scope
13 | /// - paragraphStyle: The paragraph style.
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
17 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:23:33: error: cannot find type 'NSTextAlignment' in scope
21 | /// - alignment: The text alignment.
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
| `- error: cannot find type 'NSTextAlignment' in scope
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
25 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:31:40: error: cannot find type 'CGFloat' in scope
29 | /// - indent: The first line head indent.
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
33 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:39:35: error: cannot find type 'CGFloat' in scope
37 | /// - headIndent: The head indent of the attributed string.
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
41 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:47:35: error: cannot find type 'CGFloat' in scope
45 | /// - tailIndent: The tail indent of the attributed string.
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
49 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:55:39: error: cannot find type 'CGFloat' in scope
53 | /// - height: The multiple line height as floating point number.
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
57 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:63:38: error: cannot find type 'CGFloat' in scope
61 | /// - height: The minimum line height as a floating point number.
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
65 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:71:38: error: cannot find type 'CGFloat' in scope
69 | /// - height: The maximum line height as a floating point number.
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
73 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:79:33: error: cannot find type 'CGFloat' in scope
77 | /// - spacing: The spacing as a floating point number.
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
81 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:87:38: error: cannot find type 'CGFloat' in scope
85 | /// - spacing: The paragraph spacing as a floating point number.
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
89 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:95:44: error: cannot find type 'CGFloat' in scope
93 | /// - spacing: The spacing as a floating point number.
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
97 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:103:41: error: cannot find type 'NSLineBreakMode' in scope
101 | /// - lineBreakMode: The line break mode to use for the text.
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
| `- error: cannot find type 'NSLineBreakMode' in scope
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
105 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:111:40: error: cannot find type 'NSParagraphStyle' in scope
109 | /// - strategy: The line break strategy of the text.
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
113 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:145:44: error: cannot find type 'NSWritingDirection' in scope
143 | /// - direction: The new writing direction of the text.
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
| `- error: cannot find type 'NSWritingDirection' in scope
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
147 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:32: error: cannot find type 'NSTextTab' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'NSTextTab' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:61: error: cannot find type 'CGFloat' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:168:43: error: cannot find type 'NSMutableParagraphStyle' in scope
166 | func addingParagraphStyle<T>(
167 | _ value: T,
168 | keyPath: ReferenceWritableKeyPath<NSMutableParagraphStyle, T>
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
169 | ) -> Attributes {
170 | let paragraphStyle = mutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:7:11: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | extension NSAttributedString: AttributedStringBuilding {
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public func attributes() -> Attributes {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:19:46: error: cannot find type 'NSMutableAttributedString' in scope
17 | }
18 |
19 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
20 | mutableCopy() as? NSMutableAttributedString ?? NSMutableAttributedString()
21 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:23:66: error: cannot find type 'NSAttributedString' in scope
21 | }
22 |
23 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
24 | guard length > 0 else {
25 | return NSAttributedString()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:76: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:53: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
[26/27] Compiling NSAttributedStringBuilder NSAttributedString+AttributedStringBuilding.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:15:43: error: cannot find type 'NSParagraphStyle' in scope
13 | /// - paragraphStyle: The paragraph style.
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
17 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:23:33: error: cannot find type 'NSTextAlignment' in scope
21 | /// - alignment: The text alignment.
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
| `- error: cannot find type 'NSTextAlignment' in scope
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
25 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:31:40: error: cannot find type 'CGFloat' in scope
29 | /// - indent: The first line head indent.
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
33 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:39:35: error: cannot find type 'CGFloat' in scope
37 | /// - headIndent: The head indent of the attributed string.
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
41 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:47:35: error: cannot find type 'CGFloat' in scope
45 | /// - tailIndent: The tail indent of the attributed string.
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
49 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:55:39: error: cannot find type 'CGFloat' in scope
53 | /// - height: The multiple line height as floating point number.
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
57 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:63:38: error: cannot find type 'CGFloat' in scope
61 | /// - height: The minimum line height as a floating point number.
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
65 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:71:38: error: cannot find type 'CGFloat' in scope
69 | /// - height: The maximum line height as a floating point number.
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
73 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:79:33: error: cannot find type 'CGFloat' in scope
77 | /// - spacing: The spacing as a floating point number.
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
81 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:87:38: error: cannot find type 'CGFloat' in scope
85 | /// - spacing: The paragraph spacing as a floating point number.
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
89 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:95:44: error: cannot find type 'CGFloat' in scope
93 | /// - spacing: The spacing as a floating point number.
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
97 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:103:41: error: cannot find type 'NSLineBreakMode' in scope
101 | /// - lineBreakMode: The line break mode to use for the text.
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
| `- error: cannot find type 'NSLineBreakMode' in scope
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
105 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:111:40: error: cannot find type 'NSParagraphStyle' in scope
109 | /// - strategy: The line break strategy of the text.
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
113 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:145:44: error: cannot find type 'NSWritingDirection' in scope
143 | /// - direction: The new writing direction of the text.
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
| `- error: cannot find type 'NSWritingDirection' in scope
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
147 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:32: error: cannot find type 'NSTextTab' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'NSTextTab' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:61: error: cannot find type 'CGFloat' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:168:43: error: cannot find type 'NSMutableParagraphStyle' in scope
166 | func addingParagraphStyle<T>(
167 | _ value: T,
168 | keyPath: ReferenceWritableKeyPath<NSMutableParagraphStyle, T>
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
169 | ) -> Attributes {
170 | let paragraphStyle = mutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:7:11: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | extension NSAttributedString: AttributedStringBuilding {
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public func attributes() -> Attributes {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:19:46: error: cannot find type 'NSMutableAttributedString' in scope
17 | }
18 |
19 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
20 | mutableCopy() as? NSMutableAttributedString ?? NSMutableAttributedString()
21 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:23:66: error: cannot find type 'NSAttributedString' in scope
21 | }
22 |
23 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
24 | guard length > 0 else {
25 | return NSAttributedString()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:76: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:53: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
[27/27] Compiling NSAttributedStringBuilder NSAttributedString+append.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/AttributedStringBuilding.swift:43:32: error: cannot find type 'NSAttributedString' in scope
41 | /// }
42 | /// ```
43 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
44 |
45 | /// Provides methods to build an attributed string.
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:15:43: error: cannot find type 'NSParagraphStyle' in scope
13 | /// - paragraphStyle: The paragraph style.
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
17 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:23:33: error: cannot find type 'NSTextAlignment' in scope
21 | /// - alignment: The text alignment.
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
| `- error: cannot find type 'NSTextAlignment' in scope
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
25 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:31:40: error: cannot find type 'CGFloat' in scope
29 | /// - indent: The first line head indent.
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
33 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:39:35: error: cannot find type 'CGFloat' in scope
37 | /// - headIndent: The head indent of the attributed string.
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
41 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:47:35: error: cannot find type 'CGFloat' in scope
45 | /// - tailIndent: The tail indent of the attributed string.
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
49 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:55:39: error: cannot find type 'CGFloat' in scope
53 | /// - height: The multiple line height as floating point number.
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
57 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:63:38: error: cannot find type 'CGFloat' in scope
61 | /// - height: The minimum line height as a floating point number.
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
65 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:71:38: error: cannot find type 'CGFloat' in scope
69 | /// - height: The maximum line height as a floating point number.
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
73 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:79:33: error: cannot find type 'CGFloat' in scope
77 | /// - spacing: The spacing as a floating point number.
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
81 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:87:38: error: cannot find type 'CGFloat' in scope
85 | /// - spacing: The paragraph spacing as a floating point number.
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
89 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:95:44: error: cannot find type 'CGFloat' in scope
93 | /// - spacing: The spacing as a floating point number.
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
97 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:103:41: error: cannot find type 'NSLineBreakMode' in scope
101 | /// - lineBreakMode: The line break mode to use for the text.
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
| `- error: cannot find type 'NSLineBreakMode' in scope
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
105 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:111:40: error: cannot find type 'NSParagraphStyle' in scope
109 | /// - strategy: The line break strategy of the text.
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
| `- error: cannot find type 'NSParagraphStyle' in scope
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
113 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:145:44: error: cannot find type 'NSWritingDirection' in scope
143 | /// - direction: The new writing direction of the text.
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
| `- error: cannot find type 'NSWritingDirection' in scope
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
147 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:32: error: cannot find type 'NSTextTab' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'NSTextTab' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:154:61: error: cannot find type 'CGFloat' in scope
152 | /// - defaultInterval: The default interval of the text tab stops. Default is `0`.
153 | /// - Returns: The modified attributes.
154 | func tabStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Attributes {
| `- error: cannot find type 'CGFloat' in scope
155 | let paragraphStyle = mutableParagraphStyle()
156 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:168:43: error: cannot find type 'NSMutableParagraphStyle' in scope
166 | func addingParagraphStyle<T>(
167 | _ value: T,
168 | keyPath: ReferenceWritableKeyPath<NSMutableParagraphStyle, T>
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
169 | ) -> Attributes {
170 | let paragraphStyle = mutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:39:37: error: cannot find type 'NSMutableParagraphStyle' in scope
37 | /// Get the mutable paragraph style of the last character. If none exist, a new paragraph style is created.
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:7:11: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | extension NSAttributedString: AttributedStringBuilding {
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public func attributes() -> Attributes {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:19:46: error: cannot find type 'NSMutableAttributedString' in scope
17 | }
18 |
19 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
20 | mutableCopy() as? NSMutableAttributedString ?? NSMutableAttributedString()
21 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:23:66: error: cannot find type 'NSAttributedString' in scope
21 | }
22 |
23 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
24 | guard length > 0 else {
25 | return NSAttributedString()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:76: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/NSAttributedString+AttributedStringBuilding.swift:35:53: error: cannot find type 'NSAttributedString' in scope
33 | }
34 |
35 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
36 | let current = mutableAttributedString()
37 | let newAttributes = attributes()
BUILD FAILURE 6.0 linux