Build Information
Failed to build NSAttributedStringBuilder, reference main (0ef34d), with Swift 6.3 for Android on 2 May 2026 15:32:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
[10/27] Compiling NSAttributedStringBuilder AttributedStringBuilding+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/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 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AImage+AttributedStringBuilding.swift:8:11: error: cannot find type 'AImage' in scope
6 |
7 | #if !os(watchOS)
8 | extension AImage: AttributedStringBuilding {
| `- error: cannot find type 'AImage' in scope
9 |
10 | public func attributes() -> Attributes {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AImage+AttributedStringBuilding.swift:14:46: error: cannot find type 'NSMutableAttributedString' in scope
12 | }
13 |
14 | public func mutableAttributedString() -> NSMutableAttributedString {
| `- error: cannot find type 'NSMutableAttributedString' in scope
15 | NSMutableAttributedString(attributedString: .init().image(self))
16 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AImage+AttributedStringBuilding.swift:18:66: error: cannot find type 'NSAttributedString' in scope
16 | }
17 |
18 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
19 | NSAttributedString()
20 | .image(self)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AImage+AttributedStringBuilding.swift:24:76: error: cannot find type 'NSAttributedString' in scope
22 | }
23 |
24 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
25 | NSAttributedString()
26 | .image(self)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/AImage+AttributedStringBuilding.swift:24:53: error: cannot find type 'NSAttributedString' in scope
22 | }
23 |
24 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
25 | NSAttributedString()
26 | .image(self)
[11/27] Compiling NSAttributedStringBuilder WritingDirection.swift
[12/27] Compiling NSAttributedStringBuilder resource_bundle_accessor.swift
[13/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[14/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[15/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[16/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: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+multiPlatformParagraphStyles.swift:16:26: error: cannot infer contextual base in reference to member 'paragraphStyle'
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
17 | }
18 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:24:50: error: cannot infer key path type from context; consider explicitly specifying a root type
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
25 | }
26 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:32:47: error: cannot infer key path type from context; consider explicitly specifying a root type
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
33 | }
34 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:40:51: error: cannot infer key path type from context; consider explicitly specifying a root type
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
41 | }
42 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:48:51: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | }
50 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:56:47: error: cannot infer key path type from context; consider explicitly specifying a root type
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
57 | }
58 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:64:47: error: cannot infer key path type from context; consider explicitly specifying a root type
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
65 | }
66 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:72:47: error: cannot infer key path type from context; consider explicitly specifying a root type
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
73 | }
74 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:80:48: error: cannot infer key path type from context; consider explicitly specifying a root type
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
81 | }
82 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:88:48: error: cannot infer key path type from context; consider explicitly specifying a root type
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
89 | }
90 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:96:48: error: cannot infer key path type from context; consider explicitly specifying a root type
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
97 | }
98 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:104:54: error: cannot infer key path type from context; consider explicitly specifying a root type
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:112:49: error: cannot infer key path type from context; consider explicitly specifying a root type
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
113 | }
114 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:120:47: error: cannot infer key path type from context; consider explicitly specifying a root type
118 | /// - Returns: The modified attributes.
119 | func hyphenationFactor(_ factor: Float) -> Attributes {
120 | addingParagraphStyle(factor, keyPath: \.hyphenationFactor)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
121 | }
122 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:129:63: error: cannot infer key path type from context; consider explicitly specifying a root type
127 | @available(iOS 15, macOS 13, watchOS 8, tvOS 15, *)
128 | func usesDefaultHyphenation(_ usesDefaultHyphenation: Bool) -> Attributes {
129 | addingParagraphStyle(usesDefaultHyphenation, keyPath: \.usesDefaultHyphenation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
130 | }
131 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:138:50: error: cannot infer key path type from context; consider explicitly specifying a root type
136 | /// - Returns: The modified attributes.
137 | func allowsDefaultTighteningForTruncation(_ isAllowed: Bool) -> Attributes {
138 | addingParagraphStyle(isAllowed, keyPath: \.allowsDefaultTighteningForTruncation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
139 | }
140 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:146:50: error: cannot infer key path type from context; consider explicitly specifying a root type
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
147 | }
148 |
/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+multiPlatformParagraphStyles.swift:158:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
156 | paragraphStyle.tabStops = tabStops
157 | paragraphStyle.defaultTabInterval = defaultInterval
158 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
159 | }
160 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:172:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
170 | let paragraphStyle = mutableParagraphStyle()
171 | paragraphStyle[keyPath: keyPath] = value
172 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
173 | }
174 | }
/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()
[17/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: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+multiPlatformParagraphStyles.swift:16:26: error: cannot infer contextual base in reference to member 'paragraphStyle'
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
17 | }
18 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:24:50: error: cannot infer key path type from context; consider explicitly specifying a root type
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
25 | }
26 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:32:47: error: cannot infer key path type from context; consider explicitly specifying a root type
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
33 | }
34 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:40:51: error: cannot infer key path type from context; consider explicitly specifying a root type
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
41 | }
42 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:48:51: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | }
50 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:56:47: error: cannot infer key path type from context; consider explicitly specifying a root type
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
57 | }
58 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:64:47: error: cannot infer key path type from context; consider explicitly specifying a root type
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
65 | }
66 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:72:47: error: cannot infer key path type from context; consider explicitly specifying a root type
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
73 | }
74 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:80:48: error: cannot infer key path type from context; consider explicitly specifying a root type
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
81 | }
82 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:88:48: error: cannot infer key path type from context; consider explicitly specifying a root type
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
89 | }
90 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:96:48: error: cannot infer key path type from context; consider explicitly specifying a root type
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
97 | }
98 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:104:54: error: cannot infer key path type from context; consider explicitly specifying a root type
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:112:49: error: cannot infer key path type from context; consider explicitly specifying a root type
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
113 | }
114 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:120:47: error: cannot infer key path type from context; consider explicitly specifying a root type
118 | /// - Returns: The modified attributes.
119 | func hyphenationFactor(_ factor: Float) -> Attributes {
120 | addingParagraphStyle(factor, keyPath: \.hyphenationFactor)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
121 | }
122 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:129:63: error: cannot infer key path type from context; consider explicitly specifying a root type
127 | @available(iOS 15, macOS 13, watchOS 8, tvOS 15, *)
128 | func usesDefaultHyphenation(_ usesDefaultHyphenation: Bool) -> Attributes {
129 | addingParagraphStyle(usesDefaultHyphenation, keyPath: \.usesDefaultHyphenation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
130 | }
131 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:138:50: error: cannot infer key path type from context; consider explicitly specifying a root type
136 | /// - Returns: The modified attributes.
137 | func allowsDefaultTighteningForTruncation(_ isAllowed: Bool) -> Attributes {
138 | addingParagraphStyle(isAllowed, keyPath: \.allowsDefaultTighteningForTruncation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
139 | }
140 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:146:50: error: cannot infer key path type from context; consider explicitly specifying a root type
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
147 | }
148 |
/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+multiPlatformParagraphStyles.swift:158:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
156 | paragraphStyle.tabStops = tabStops
157 | paragraphStyle.defaultTabInterval = defaultInterval
158 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
159 | }
160 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:172:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
170 | let paragraphStyle = mutableParagraphStyle()
171 | paragraphStyle[keyPath: keyPath] = value
172 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
173 | }
174 | }
/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()
[18/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: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+multiPlatformParagraphStyles.swift:16:26: error: cannot infer contextual base in reference to member 'paragraphStyle'
14 | /// - Returns: The modified attributes.
15 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Attributes {
16 | addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
17 | }
18 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:24:50: error: cannot infer key path type from context; consider explicitly specifying a root type
22 | /// - Returns: The modified attributes.
23 | func alignment(_ alignment: NSTextAlignment) -> Attributes {
24 | addingParagraphStyle(alignment, keyPath: \.alignment)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
25 | }
26 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:32:47: error: cannot infer key path type from context; consider explicitly specifying a root type
30 | /// - Returns: The modified attributes.
31 | func firstLineHeadIndent(_ indent: CGFloat) -> Attributes {
32 | addingParagraphStyle(indent, keyPath: \.firstLineHeadIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
33 | }
34 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:40:51: error: cannot infer key path type from context; consider explicitly specifying a root type
38 | /// - Returns: The modified attributes.
39 | func headIndent(_ headIndent: CGFloat) -> Attributes {
40 | addingParagraphStyle(headIndent, keyPath: \.headIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
41 | }
42 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:48:51: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | /// - Returns: The modified attributes.
47 | func tailIndent(_ tailIndent: CGFloat) -> Attributes {
48 | addingParagraphStyle(tailIndent, keyPath: \.tailIndent)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | }
50 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:56:47: error: cannot infer key path type from context; consider explicitly specifying a root type
54 | /// - Returns: The modified attributes.
55 | func lineHeightMultiple(_ height: CGFloat) -> Attributes {
56 | addingParagraphStyle(height, keyPath: \.lineHeightMultiple)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
57 | }
58 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:64:47: error: cannot infer key path type from context; consider explicitly specifying a root type
62 | /// - Returns: The modified attributes.
63 | func minimumLineHeight(_ height: CGFloat) -> Attributes {
64 | addingParagraphStyle(height, keyPath: \.minimumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
65 | }
66 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:72:47: error: cannot infer key path type from context; consider explicitly specifying a root type
70 | /// - Returns: The modified attributes.
71 | func maximumLineHeight(_ height: CGFloat) -> Attributes {
72 | addingParagraphStyle(height, keyPath: \.maximumLineHeight)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
73 | }
74 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:80:48: error: cannot infer key path type from context; consider explicitly specifying a root type
78 | /// - Returns: The modified attributes.
79 | func lineSpacing(_ spacing: CGFloat) -> Attributes {
80 | addingParagraphStyle(spacing, keyPath: \.lineSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
81 | }
82 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:88:48: error: cannot infer key path type from context; consider explicitly specifying a root type
86 | /// - Returns: The modified attributes.
87 | func paragraphSpacing(_ spacing: CGFloat) -> Attributes {
88 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacing)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
89 | }
90 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:96:48: error: cannot infer key path type from context; consider explicitly specifying a root type
94 | /// - Returns: The modified attributes.
95 | func paragraphSpacingBefore(_ spacing: CGFloat) -> Attributes {
96 | addingParagraphStyle(spacing, keyPath: \.paragraphSpacingBefore)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
97 | }
98 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:104:54: error: cannot infer key path type from context; consider explicitly specifying a root type
102 | /// - Returns: The modified attributes.
103 | func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> Attributes {
104 | addingParagraphStyle(lineBreakMode, keyPath: \.lineBreakMode)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:112:49: error: cannot infer key path type from context; consider explicitly specifying a root type
110 | /// - Returns: The modified attributes.
111 | func lineBreakStrategy(_ strategy: NSParagraphStyle.LineBreakStrategy) -> Attributes {
112 | addingParagraphStyle(strategy, keyPath: \.lineBreakStrategy)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
113 | }
114 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:120:47: error: cannot infer key path type from context; consider explicitly specifying a root type
118 | /// - Returns: The modified attributes.
119 | func hyphenationFactor(_ factor: Float) -> Attributes {
120 | addingParagraphStyle(factor, keyPath: \.hyphenationFactor)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
121 | }
122 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:129:63: error: cannot infer key path type from context; consider explicitly specifying a root type
127 | @available(iOS 15, macOS 13, watchOS 8, tvOS 15, *)
128 | func usesDefaultHyphenation(_ usesDefaultHyphenation: Bool) -> Attributes {
129 | addingParagraphStyle(usesDefaultHyphenation, keyPath: \.usesDefaultHyphenation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
130 | }
131 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:138:50: error: cannot infer key path type from context; consider explicitly specifying a root type
136 | /// - Returns: The modified attributes.
137 | func allowsDefaultTighteningForTruncation(_ isAllowed: Bool) -> Attributes {
138 | addingParagraphStyle(isAllowed, keyPath: \.allowsDefaultTighteningForTruncation)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
139 | }
140 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:146:50: error: cannot infer key path type from context; consider explicitly specifying a root type
144 | /// - Returns: The modified attributes.
145 | func baseWritingDirection(_ direction: NSWritingDirection) -> Attributes {
146 | addingParagraphStyle(direction, keyPath: \.baseWritingDirection)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
147 | }
148 |
/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+multiPlatformParagraphStyles.swift:158:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
156 | paragraphStyle.tabStops = tabStops
157 | paragraphStyle.defaultTabInterval = defaultInterval
158 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
159 | }
160 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatformParagraphStyles.swift:172:33: error: cannot infer contextual base in reference to member 'paragraphStyle'
170 | let paragraphStyle = mutableParagraphStyle()
171 | paragraphStyle[keyPath: keyPath] = value
172 | return addingAttribute(.paragraphStyle, value: paragraphStyle)
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
173 | }
174 | }
/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()
[19/27] Compiling NSAttributedStringBuilder NSAttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:10:59: error: missing argument for parameter 'string' in call
8 |
9 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
10 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
11 | result.append(element)
12 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:59: error: missing argument for parameter 'string' in call
14 |
15 | public static func buildArray(_ components: [NSAttributedString]) -> NSAttributedString {
16 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
17 | result.append(element)
18 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:22:41: error: missing argument for parameter #1 in call
20 |
21 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
22 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
23 | }
24 |
:
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[20/27] Compiling NSAttributedStringBuilder Newline.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:10:59: error: missing argument for parameter 'string' in call
8 |
9 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
10 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
11 | result.append(element)
12 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:59: error: missing argument for parameter 'string' in call
14 |
15 | public static func buildArray(_ components: [NSAttributedString]) -> NSAttributedString {
16 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
17 | result.append(element)
18 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:22:41: error: missing argument for parameter #1 in call
20 |
21 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
22 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
23 | }
24 |
:
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[21/27] Compiling NSAttributedStringBuilder NonBreakingSpace.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:10:59: error: missing argument for parameter 'string' in call
8 |
9 | public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString {
10 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
11 | result.append(element)
12 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:59: error: missing argument for parameter 'string' in call
14 |
15 | public static func buildArray(_ components: [NSAttributedString]) -> NSAttributedString {
16 | components.reduce(into: NSMutableAttributedString()) { result, element in
| `- error: missing argument for parameter 'string' in call
17 | result.append(element)
18 | }
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:22:41: error: missing argument for parameter #1 in call
20 |
21 | public static func buildOptional(_ component: NSAttributedString?) -> NSAttributedString {
22 | component ?? NSAttributedString()
| `- error: missing argument for parameter #1 in call
23 | }
24 |
:
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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:41:17: note: 'init(_:)' declared here
39 |
40 | /// Initializes an attributed string from given attributed strings provided by the result builder.
41 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- note: 'init(_:)' declared here
42 | self.init(attributedString: builder())
43 | }
/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 |
[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:65: error: cannot infer contextual base in reference to member 'paragraphStyle'
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:41:20: error: cannot find 'NSMutableParagraphStyle' in scope
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:76: error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:49: error: cannot find type 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:39: error: cannot find 'NSNumber' in scope
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot find 'NSNumber' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:26: error: cannot infer contextual base in reference to member 'kern'
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot infer contextual base in reference to member 'kern'
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:46: error: cannot find type 'NSURL' in scope
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot find type 'NSURL' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:26: error: cannot infer contextual base in reference to member 'link'
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot infer contextual base in reference to member 'link'
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:49: error: cannot find 'NSNumber' in scope
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot find 'NSNumber' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:26: error: cannot infer contextual base in reference to member 'baselineOffset'
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot infer contextual base in reference to member 'baselineOffset'
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:76:26: error: cannot infer contextual base in reference to member 'ligature'
74 | /// - Returns: The modified attributes.
75 | func ligature(_ option: Ligature) -> Attributes {
76 | addingAttribute(.ligature, value: option.rawValue)
| `- error: cannot infer contextual base in reference to member 'ligature'
77 | }
78 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:54: error: cannot find type 'NSString' in scope
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot find type 'NSString' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:26: error: cannot infer contextual base in reference to member 'textEffect'
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot infer contextual base in reference to member 'textEffect'
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:92:26: error: cannot infer contextual base in reference to member 'writingDirection'
90 | /// - Returns: The modified attributes.
91 | func writingDirection(_ direction: NSAttributedStringBuilder.WritingDirection) -> Attributes {
92 | addingAttribute(.writingDirection, value: [direction.rawValue])
| `- error: cannot infer contextual base in reference to member 'writingDirection'
93 | }
94 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:25: error: cannot find 'NSAttributedString' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'NSAttributedString' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:48: error: cannot find 'kCTLanguageAttributeName' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'kCTLanguageAttributeName' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:115:26: error: cannot infer contextual base in reference to member 'languageIdentifier'
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
| `- error: cannot infer contextual base in reference to member 'languageIdentifier'
116 | }
117 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:43: error: cannot find 'NSNumber' in scope
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot find 'NSNumber' in scope
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:26: error: cannot infer contextual base in reference to member 'tracking'
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot infer contextual base in reference to member 'tracking'
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:141:26: error: cannot infer contextual base in reference to member 'font'
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
141 | addingAttribute(.font, value: font)
| `- error: cannot infer contextual base in reference to member 'font'
142 | }
143 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:149:26: error: cannot infer contextual base in reference to member 'foregroundColor'
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
149 | addingAttribute(.foregroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'foregroundColor'
150 | }
151 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:157:26: error: cannot infer contextual base in reference to member 'backgroundColor'
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
157 | addingAttribute(.backgroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'backgroundColor'
158 | }
159 |
/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:205:33: error: cannot infer contextual base in reference to member 'shadow'
203 | shadow.shadowColor = color
204 |
205 | return addingAttribute(.shadow, value: shadow)
| `- error: cannot infer contextual base in reference to member 'shadow'
206 | }
207 |
/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
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:238:26: error: cannot infer contextual base in reference to member 'attachment'
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
238 | addingAttribute(.attachment, value: attachment)
| `- error: cannot infer contextual base in reference to member 'attachment'
239 | }
240 | }
[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:65: error: cannot infer contextual base in reference to member 'paragraphStyle'
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:41:20: error: cannot find 'NSMutableParagraphStyle' in scope
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:76: error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:49: error: cannot find type 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:39: error: cannot find 'NSNumber' in scope
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot find 'NSNumber' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:26: error: cannot infer contextual base in reference to member 'kern'
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot infer contextual base in reference to member 'kern'
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:46: error: cannot find type 'NSURL' in scope
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot find type 'NSURL' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:26: error: cannot infer contextual base in reference to member 'link'
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot infer contextual base in reference to member 'link'
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:49: error: cannot find 'NSNumber' in scope
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot find 'NSNumber' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:26: error: cannot infer contextual base in reference to member 'baselineOffset'
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot infer contextual base in reference to member 'baselineOffset'
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:76:26: error: cannot infer contextual base in reference to member 'ligature'
74 | /// - Returns: The modified attributes.
75 | func ligature(_ option: Ligature) -> Attributes {
76 | addingAttribute(.ligature, value: option.rawValue)
| `- error: cannot infer contextual base in reference to member 'ligature'
77 | }
78 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:54: error: cannot find type 'NSString' in scope
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot find type 'NSString' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:26: error: cannot infer contextual base in reference to member 'textEffect'
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot infer contextual base in reference to member 'textEffect'
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:92:26: error: cannot infer contextual base in reference to member 'writingDirection'
90 | /// - Returns: The modified attributes.
91 | func writingDirection(_ direction: NSAttributedStringBuilder.WritingDirection) -> Attributes {
92 | addingAttribute(.writingDirection, value: [direction.rawValue])
| `- error: cannot infer contextual base in reference to member 'writingDirection'
93 | }
94 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:25: error: cannot find 'NSAttributedString' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'NSAttributedString' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:48: error: cannot find 'kCTLanguageAttributeName' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'kCTLanguageAttributeName' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:115:26: error: cannot infer contextual base in reference to member 'languageIdentifier'
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
| `- error: cannot infer contextual base in reference to member 'languageIdentifier'
116 | }
117 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:43: error: cannot find 'NSNumber' in scope
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot find 'NSNumber' in scope
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:26: error: cannot infer contextual base in reference to member 'tracking'
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot infer contextual base in reference to member 'tracking'
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:141:26: error: cannot infer contextual base in reference to member 'font'
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
141 | addingAttribute(.font, value: font)
| `- error: cannot infer contextual base in reference to member 'font'
142 | }
143 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:149:26: error: cannot infer contextual base in reference to member 'foregroundColor'
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
149 | addingAttribute(.foregroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'foregroundColor'
150 | }
151 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:157:26: error: cannot infer contextual base in reference to member 'backgroundColor'
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
157 | addingAttribute(.backgroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'backgroundColor'
158 | }
159 |
/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:205:33: error: cannot infer contextual base in reference to member 'shadow'
203 | shadow.shadowColor = color
204 |
205 | return addingAttribute(.shadow, value: shadow)
| `- error: cannot infer contextual base in reference to member 'shadow'
206 | }
207 |
/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
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:238:26: error: cannot infer contextual base in reference to member 'attachment'
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
238 | addingAttribute(.attachment, value: attachment)
| `- error: cannot infer contextual base in reference to member 'attachment'
239 | }
240 | }
[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:65: error: cannot infer contextual base in reference to member 'paragraphStyle'
38 | /// - Returns: A copy of the current paragraph style.
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
41 | return NSMutableParagraphStyle()
42 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:41:20: error: cannot find 'NSMutableParagraphStyle' in scope
39 | func mutableParagraphStyle() -> NSMutableParagraphStyle {
40 | guard let paragraphStyle: NSParagraphStyle = attribute(.paragraphStyle) else {
41 | return NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:76: error: cannot find 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:44:49: error: cannot find type 'NSMutableParagraphStyle' in scope
42 | }
43 |
44 | return paragraphStyle.mutableCopy() as? NSMutableParagraphStyle ?? NSMutableParagraphStyle()
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:39: error: cannot find 'NSNumber' in scope
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot find 'NSNumber' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:52:26: error: cannot infer contextual base in reference to member 'kern'
50 | /// - Returns: The modified attributes.
51 | func kerning(_ kerning: Double) -> Attributes {
52 | addingAttribute(.kern, value: NSNumber(value: kerning))
| `- error: cannot infer contextual base in reference to member 'kern'
53 | }
54 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:46: error: cannot find type 'NSURL' in scope
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot find type 'NSURL' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:60:26: error: cannot infer contextual base in reference to member 'link'
58 | /// - Returns: The modified attributes.
59 | func link(_ url: URL) -> Attributes {
60 | addingAttribute(.link, value: url as NSURL)
| `- error: cannot infer contextual base in reference to member 'link'
61 | }
62 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:49: error: cannot find 'NSNumber' in scope
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot find 'NSNumber' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:68:26: error: cannot infer contextual base in reference to member 'baselineOffset'
66 | /// - Returns: The modified attributes.
67 | func baselineOffset(_ offset: Double) -> Attributes {
68 | addingAttribute(.baselineOffset, value: NSNumber(value: offset))
| `- error: cannot infer contextual base in reference to member 'baselineOffset'
69 | }
70 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:76:26: error: cannot infer contextual base in reference to member 'ligature'
74 | /// - Returns: The modified attributes.
75 | func ligature(_ option: Ligature) -> Attributes {
76 | addingAttribute(.ligature, value: option.rawValue)
| `- error: cannot infer contextual base in reference to member 'ligature'
77 | }
78 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:54: error: cannot find type 'NSString' in scope
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot find type 'NSString' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:84:26: error: cannot infer contextual base in reference to member 'textEffect'
82 | /// - Returns: The modified attributes.
83 | func textEffect(_ style: NSAttributedString.TextEffectStyle) -> Attributes {
84 | addingAttribute(.textEffect, value: style as NSString)
| `- error: cannot infer contextual base in reference to member 'textEffect'
85 | }
86 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:92:26: error: cannot infer contextual base in reference to member 'writingDirection'
90 | /// - Returns: The modified attributes.
91 | func writingDirection(_ direction: NSAttributedStringBuilder.WritingDirection) -> Attributes {
92 | addingAttribute(.writingDirection, value: [direction.rawValue])
| `- error: cannot infer contextual base in reference to member 'writingDirection'
93 | }
94 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:25: error: cannot find 'NSAttributedString' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'NSAttributedString' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:104:48: error: cannot find 'kCTLanguageAttributeName' in scope
102 | /// - Returns: The modified attributes.
103 | func language(_ languageCode: NSAttributedStringBuilder.LanguageCode) -> Attributes {
104 | addingAttribute(NSAttributedString.Key(kCTLanguageAttributeName as String), value: languageCode.rawValue)
| `- error: cannot find 'kCTLanguageAttributeName' in scope
105 | }
106 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:115:26: error: cannot infer contextual base in reference to member 'languageIdentifier'
113 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
114 | func languageIdentifier(_ languageCode: Locale.LanguageCode) -> Attributes {
115 | addingAttribute(.languageIdentifier, value: languageCode.identifier)
| `- error: cannot infer contextual base in reference to member 'languageIdentifier'
116 | }
117 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:43: error: cannot find 'NSNumber' in scope
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot find 'NSNumber' in scope
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:128:26: error: cannot infer contextual base in reference to member 'tracking'
126 | @available(iOS 14, tvOS 14, watchOS 7, *)
127 | func tracking(_ tracking: Double) -> Attributes {
128 | addingAttribute(.tracking, value: NSNumber(value: tracking))
| `- error: cannot infer contextual base in reference to member 'tracking'
129 | }
130 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:141:26: error: cannot infer contextual base in reference to member 'font'
139 | /// - Returns: The modified attributes.
140 | func font(_ font: AFont) -> Attributes {
141 | addingAttribute(.font, value: font)
| `- error: cannot infer contextual base in reference to member 'font'
142 | }
143 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:149:26: error: cannot infer contextual base in reference to member 'foregroundColor'
147 | /// - Returns: The modified attributes.
148 | func foregroundColor(_ color: AColor) -> Attributes {
149 | addingAttribute(.foregroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'foregroundColor'
150 | }
151 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:157:26: error: cannot infer contextual base in reference to member 'backgroundColor'
155 | /// - Returns: The modified attributes.
156 | func backgroundColor(_ color: AColor) -> Attributes {
157 | addingAttribute(.backgroundColor, value: color)
| `- error: cannot infer contextual base in reference to member 'backgroundColor'
158 | }
159 |
/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:205:33: error: cannot infer contextual base in reference to member 'shadow'
203 | shadow.shadowColor = color
204 |
205 | return addingAttribute(.shadow, value: shadow)
| `- error: cannot infer contextual base in reference to member 'shadow'
206 | }
207 |
/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
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/Attributes+multiPlatform.swift:238:26: error: cannot infer contextual base in reference to member 'attachment'
236 | /// - Returns:The modified attributes.
237 | func attachment(_ attachment: NSTextAttachment) -> Attributes {
238 | addingAttribute(.attachment, value: attachment)
| `- error: cannot infer contextual base in reference to member 'attachment'
239 | }
240 | }
[25/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 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:18:9: error: cannot find 'NSMutableAttributedString' in scope
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
18 | NSMutableAttributedString(string: self)
| `- error: cannot find 'NSMutableAttributedString' in scope
19 | }
20 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:26:9: error: cannot find 'NSAttributedString' in scope
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
26 | NSAttributedString(string: self, attributes: newAttributes)
| `- error: cannot find 'NSAttributedString' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:34:9: error: cannot find 'NSAttributedString' in scope
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
34 | NSAttributedString(string: self).addingAttributedString(newString)
| `- error: cannot find 'NSAttributedString' in scope
35 | }
36 | }
[26/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 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:18:9: error: cannot find 'NSMutableAttributedString' in scope
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
18 | NSMutableAttributedString(string: self)
| `- error: cannot find 'NSMutableAttributedString' in scope
19 | }
20 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:26:9: error: cannot find 'NSAttributedString' in scope
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
26 | NSAttributedString(string: self, attributes: newAttributes)
| `- error: cannot find 'NSAttributedString' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:34:9: error: cannot find 'NSAttributedString' in scope
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
34 | NSAttributedString(string: self).addingAttributedString(newString)
| `- error: cannot find 'NSAttributedString' in scope
35 | }
36 | }
[27/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 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:18:9: error: cannot find 'NSMutableAttributedString' in scope
16 | /// - Returns: The string as a mutable attributed string without any attributes.
17 | public func mutableAttributedString() -> NSMutableAttributedString {
18 | NSMutableAttributedString(string: self)
| `- error: cannot find 'NSMutableAttributedString' in scope
19 | }
20 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:26:9: error: cannot find 'NSAttributedString' in scope
24 | /// - Returns: An attributed string with the given attributes.
25 | public func addingAttributes(_ newAttributes: Attributes) -> NSAttributedString {
26 | NSAttributedString(string: self, attributes: newAttributes)
| `- error: cannot find 'NSAttributedString' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Extensions/String+AttributedStringBuilding.swift:34:9: error: cannot find 'NSAttributedString' in scope
32 | /// - Returns: The combined attributed string.
33 | public func addingAttributedString(_ newString: NSAttributedString) -> NSAttributedString {
34 | NSAttributedString(string: self).addingAttributedString(newString)
| `- error: cannot find 'NSAttributedString' in scope
35 | }
36 | }
BUILD FAILURE 6.3 android