Build Information
Failed to build NativeMarkKit, reference 2.1.1 (4833aa
), with Swift 6.0 for Linux on 28 Nov 2024 15:41:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'inlineBackground'
71 | guard let inlineBackground = value as? BackgroundValue else { return }
72 | drawInlineBackground(inlineBackground, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:27: error: cannot find 'textStorage' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find 'textStorage' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:111: error: cannot find type 'NativeFont' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:140: error: value of type 'TextStyle' has no member 'makeFont'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:51: error: cannot infer contextual base in reference to member 'font'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:102: error: 'nil' requires a contextual type
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:31: error: value of type 'LayoutManager' has no member 'glyphRange'
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:99: error: 'nil' requires a contextual type
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:87:9: error: cannot find 'enumerateLineFragments' in scope
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
| `- error: cannot find 'enumerateLineFragments' in scope
88 | guard let intersectingRange = glyphRange.intersection(lineRange) else { return }
89 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:99:43: error: cannot find type 'CGGlyph' in scope
97 |
98 | func typographicBounds(ofGlyphRange glyphRange: NSRange, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect? {
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
| `- error: cannot find type 'CGGlyph' in scope
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:26: error: value of type 'LayoutManager' has no member 'getGlyphs'
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: value of type 'LayoutManager' has no member 'getGlyphs'
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:80: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:133: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:125:29: error: value of type 'LayoutManager' has no member 'location'
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
127 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:107: error: cannot find type 'NativeFont' in scope
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:32: error: value of type 'LayoutManager' has no member 'textStorage'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'LayoutManager' has no member 'textStorage'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:136: error: value of type 'TextStyle' has no member 'makeFont'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:56: error: cannot infer contextual base in reference to member 'font'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:98: error: 'nil' requires a contextual type
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:130:33: error: cannot find 'boundingRect' in scope
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
129 | y: lineFrame.minY + location.y)
130 | let glyphBoundingRect = boundingRect(forGlyphRange: NSRange(location: glyphIndex, length: 1),
| `- error: cannot find 'boundingRect' in scope
131 | in: container)
132 | let ascender = defaultFont.ascender
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:134:16: error: no exact matches in call to initializer
132 | let ascender = defaultFont.ascender
133 | let descender = defaultFont.descender
134 | return CGRect(x: glyphBoundingRect.minX,
| `- error: no exact matches in call to initializer
135 | y: frameLocation.y - ascender,
136 | width: glyphBoundingRect.width,
Foundation.CGRect:3:12: note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
1 | extension CGRect {
2 | public static var zero: CGRect { get }
3 | public init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)
| `- note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
4 | public init(x: Double, y: Double, width: Double, height: Double)
| `- note: candidate expects value of type 'Double' for parameter #4 (got 'LineColumnCount')
5 | public init(x: Int, y: Int, width: Int, height: Int)
| `- note: candidate expects value of type 'Int' for parameter #4 (got 'LineColumnCount')
6 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:137:36: error: cannot find type 'NSLayoutManagerDelegate' in scope
135 | }
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
| `- error: cannot find type 'NSLayoutManagerDelegate' in scope
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:48: error: cannot find type 'NSLayoutManager' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSLayoutManager' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:256: error: cannot find type 'NSTextContainer' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSTextContainer' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:164: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:48: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:83: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:21:23: error: value of type 'LayoutManager' has no member 'delegate'
19 | public override init() {
20 | super.init()
21 | layoutManager.delegate = self
| `- error: value of type 'LayoutManager' has no member 'delegate'
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:31:23: error: value of type 'LayoutManager' has no member 'addTextContainer'
29 | container.layoutManager = self
30 | textContainers.append(container)
31 | layoutManager.addTextContainer(container.container)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
32 | }
33 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:41:23: error: value of type 'LayoutManager' has no member 'insertTextContainer'
39 | container.layoutManager = self
40 | textContainers.insert(container, at: index)
41 | layoutManager.insertTextContainer(container.container, at: index)
| `- error: value of type 'LayoutManager' has no member 'insertTextContainer'
42 | }
43 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:51:23: error: value of type 'LayoutManager' has no member 'removeTextContainer'
49 | container.layoutManager = nil
50 | textContainers.remove(at: index)
51 | layoutManager.removeTextContainer(at: index)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
52 | }
53 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:67: error: cannot find type 'NativeColor' in scope
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: cannot find type 'NativeColor' in scope
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:46: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: reference to member 'backgroundColor' cannot be resolved without a contextual type
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:59:20: error: value of type 'CGRect' has no member 'fill'
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
58 | backgroundColor.set()
59 | bounds.fill()
| `- error: value of type 'CGRect' has no member 'fill'
60 | } else {
61 | bounds.clear()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:61:20: error: value of type 'CGRect' has no member 'clear'
59 | bounds.fill()
60 | } else {
61 | bounds.clear()
| `- error: value of type 'CGRect' has no member 'clear'
62 | }
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:70:23: error: value of type 'LayoutManager' has no member 'drawGlyphs'
68 |
69 | public func drawGlyphs(forGlyphRange glyphRange: NSRange, at location: CGPoint) {
70 | layoutManager.drawGlyphs(forGlyphRange: glyphRange, at: location)
| `- error: value of type 'LayoutManager' has no member 'drawGlyphs'
71 | }
72 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:74:23: error: value of type 'LayoutManager' has no member 'glyphRange'
72 |
73 | public func glyphRange(for container: NativeMarkTextContainer) -> NSRange {
74 | layoutManager.glyphRange(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
75 | }
76 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:78:23: error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
76 |
77 | public func textContainerChangedGeometry(_ textContainer: NativeMarkTextContainer) {
78 | layoutManager.textContainerChangedGeometry(textContainer.container)
| `- error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
79 | }
80 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:82:23: error: value of type 'LayoutManager' has no member 'usedRect'
80 |
81 | public func usedRect(for container: NativeMarkTextContainer) -> CGRect {
82 | layoutManager.usedRect(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'usedRect'
83 | }
84 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:40: error: value of type 'LayoutManager' has no member 'glyphRange'
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:108: error: 'nil' requires a contextual type
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:87:41: error: value of type 'LayoutManager' has no member 'boundingRect'
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:88:23: error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
| `- error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
90 | in: container.container) { rect, stop in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:98:23: error: value of type 'LayoutManager' has no member 'characterIndex'
96 |
97 | public func characterIndex(for location: CGPoint, in container: NativeMarkTextContainer, fractionOfDistanceBetweenInsertionPoints partialFraction: UnsafeMutablePointer<CGFloat>?) -> Int {
98 | layoutManager.characterIndex(for: location, in: container.container, fractionOfDistanceBetweenInsertionPoints: partialFraction)
| `- error: value of type 'LayoutManager' has no member 'characterIndex'
99 | }
100 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:102:23: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
100 |
101 | public func glyphIndexForCharacter(at characterIndex: Int) -> Int {
102 | layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
103 | }
104 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:109:23: error: value of type 'LayoutManager' has no member 'invalidateLayout'
107 | func invalidateImage(in characterRange: NSRange) {
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateLayout'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:110:23: error: value of type 'LayoutManager' has no member 'invalidateDisplay'
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateDisplay'
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:40: error: value of type 'LayoutManager' has no member 'glyphRange'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:105: error: 'nil' requires a contextual type
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:42: error: value of type 'LayoutManager' has no member 'textContainer'
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: value of type 'LayoutManager' has no member 'textContainer'
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:105: error: 'nil' requires a contextual type
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: 'nil' requires a contextual type
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:116:40: error: value of type 'LayoutManager' has no member 'boundingRect'
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
117 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
118 | } else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:122:48: error: value of type 'LayoutManager' has no member 'glyphRange'
120 | // Brute force the updates
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:123:44: error: value of type 'LayoutManager' has no member 'boundingRect'
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
125 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:130:40: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
128 |
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:46: error: value of type 'LayoutManager' has no member 'lineFragmentRect'
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: value of type 'LayoutManager' has no member 'lineFragmentRect'
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:103: error: 'nil' requires a contextual type
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: 'nil' requires a contextual type
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:132:60: error: value of type 'LayoutManager' has no member 'location'
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
134 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:139:104: error: 'nil' requires a contextual type
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
140 |
141 | var effectiveRange = characterRange
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:111: error: cannot find type 'NativeFont' in scope
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:51: error: type 'NSAttributedString.Key' has no member 'font'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:140: error: value of type 'TextStyle' has no member 'makeFont'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:10:26: error: cannot find type 'NSTextStorage' in scope
8 | public final class NativeMarkStorage {
9 | public private(set) var layoutManagers = [NativeMarkLayoutManager]()
10 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
11 | public var nativeMarkString: NativeMarkString {
12 | didSet {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:19:24: error: cannot find 'NSTextStorage' in scope
17 | public init(nativeMarkString: NativeMarkString) {
18 | self.nativeMarkString = nativeMarkString
19 | self.storage = NSTextStorage(attributedString: nativeMarkString.attributedString)
| `- error: cannot find 'NSTextStorage' in scope
20 | setDelegateForImageAttachments()
21 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:55:37: error: cannot infer contextual base in reference to member 'nativeMarkLink'
53 | public func links() -> [(url: URL, range: Range<String.Index>, nsRange: NSRange)] {
54 | var links = [(url: URL, range: Range<String.Index>, nsRange: NSRange)]()
55 | storage.enumerateAttribute(.nativeMarkLink, in: NSRange(location: 0, length: storage.length), options: []) { attributeValue, attributeRange, _ in
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
56 | guard let url = attributeValue as? NSURL,
57 | let labelRange = Range(attributeRange, in: storage.string) else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:28: error: cannot infer contextual base in reference to member 'nativeMarkLink'
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:80: error: 'nil' requires a contextual type
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: 'nil' requires a contextual type
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:87:37: error: cannot infer contextual base in reference to member 'attachment'
85 |
86 | func setDelegateForImageAttachments() {
87 | storage.enumerateAttribute(.attachment, in: NSRange(location: 0, length: storage.length), options: []) { value, _, _ in
| `- error: cannot infer contextual base in reference to member 'attachment'
88 | guard let imageAttachment = value as? ImageTextAttachment else { return }
89 | imageAttachment.layoutDelegate = self
[110/127] Compiling NativeMarkKit NativeMarkLayoutManager.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:13:33: error: cannot find type 'NativeColor' in scope
11 | let sides: BorderSides
12 |
13 | init(width: CGFloat, color: NativeColor, sides: BorderSides) {
| `- error: cannot find type 'NativeColor' in scope
14 | self.width = width
15 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:10:16: error: cannot find type 'NativeColor' in scope
8 | final class BackgroundBorderValue: NSObject {
9 | let width: CGFloat
10 | let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
11 | let sides: BorderSides
12 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:23:45: error: value of type 'CGRect' has no member 'fill'
21 |
22 | if sides.contains(.left) {
23 | leftFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
24 | }
25 | if sides.contains(.top) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:26:44: error: value of type 'CGRect' has no member 'fill'
24 | }
25 | if sides.contains(.top) {
26 | topFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
27 | }
28 | if sides.contains(.right) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:29:46: error: value of type 'CGRect' has no member 'fill'
27 | }
28 | if sides.contains(.right) {
29 | rightFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
30 | }
31 | if sides.contains(.bottom) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:32:47: error: value of type 'CGRect' has no member 'fill'
30 | }
31 | if sides.contains(.bottom) {
32 | bottomFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
33 | }
34 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:10:23: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let left = BorderSides(rawValue: 1 << 0)
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:12:23: warning: static property 'top' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let left = BorderSides(rawValue: 1 << 0)
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
| |- warning: static property 'top' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'top' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:11:23: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let left = BorderSides(rawValue: 1 << 0)
11 | public static let right = BorderSides(rawValue: 1 << 1)
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let top = BorderSides(rawValue: 1 << 2)
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:13:23: warning: static property 'bottom' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
| |- warning: static property 'bottom' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bottom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public static let all: BorderSides = [.left, .right, .top, .bottom]
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:18:21: error: cannot find type 'NativeColor' in scope
16 | let rightMargin: Length
17 |
18 | init(fillColor: NativeColor, strokeColor: NativeColor, strokeWidth: CGFloat,
| `- error: cannot find type 'NativeColor' in scope
19 | cornerRadius: CGFloat, topMargin: Length, bottomMargin: Length,
20 | leftMargin: Length, rightMargin: Length) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:18:47: error: cannot find type 'NativeColor' in scope
16 | let rightMargin: Length
17 |
18 | init(fillColor: NativeColor, strokeColor: NativeColor, strokeWidth: CGFloat,
| `- error: cannot find type 'NativeColor' in scope
19 | cornerRadius: CGFloat, topMargin: Length, bottomMargin: Length,
20 | leftMargin: Length, rightMargin: Length) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:9:20: error: cannot find type 'NativeColor' in scope
7 |
8 | final class BackgroundValue: NSObject {
9 | let fillColor: NativeColor
| `- error: cannot find type 'NativeColor' in scope
10 | let strokeColor: NativeColor
11 | let strokeWidth: CGFloat
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:10:22: error: cannot find type 'NativeColor' in scope
8 | final class BackgroundValue: NSObject {
9 | let fillColor: NativeColor
10 | let strokeColor: NativeColor
| `- error: cannot find type 'NativeColor' in scope
11 | let strokeWidth: CGFloat
12 | let cornerRadius: CGFloat
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:32:47: error: cannot find type 'NativeFont' in scope
30 | }
31 |
32 | func render(in rect: CGRect, defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
33 | let topMarginInPts = topMargin.asRawPoints(for: defaultFont.pointSize)
34 | let bottomMarginInPts = bottomMargin.asRawPoints(for: defaultFont.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:43:20: error: cannot find 'NativeBezierPath' in scope
41 | height: round(rect.height + topMarginInPts + bottomMarginInPts) - strokeWidth)
42 |
43 | let path = NativeBezierPath(roundedRect: frame, cornerRadius: cornerRadius)
| `- error: cannot find 'NativeBezierPath' in scope
44 | path.lineWidth = strokeWidth
45 | fillColor.setFill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:21:21: error: cannot find type 'NativeImage' in scope
19 | case idle
20 | case loading
21 | case loaded(NativeImage)
| `- error: cannot find type 'NativeImage' in scope
22 | }
23 | private let imageUrl: String?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:47:51: error: cannot find type 'NSTextContainer' in scope
45 | }
46 |
47 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
48 | if let image = loadImage() {
49 | if let resized = delegate?.imageTextAttachmentResize(imageUrl, image: image, lineFragment: lineFrag) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:47:19: error: method does not override any method from its superclass
45 | }
46 |
47 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: method does not override any method from its superclass
48 | if let image = loadImage() {
49 | if let resized = delegate?.imageTextAttachmentResize(imageUrl, image: image, lineFragment: lineFrag) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:61:25: error: cannot find type 'NativeImage' in scope
59 |
60 | private extension ImageTextAttachment {
61 | func loadImage() -> NativeImage? {
| `- error: cannot find type 'NativeImage' in scope
62 | switch status {
63 | case .idle:
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:42:13: error: cannot find 'NativeColor' in scope
40 | image.draw(in: drawRect)
41 | } else {
42 | NativeColor.adaptableImagePlaceholderColor.set()
| `- error: cannot find 'NativeColor' in scope
43 | rect.fill()
44 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:43:18: error: value of type 'CGRect' has no member 'fill'
41 | } else {
42 | NativeColor.adaptableImagePlaceholderColor.set()
43 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
44 | }
45 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:79:73: error: cannot infer type of closure parameter 'image' without a type annotation
77 |
78 | status = .loading
79 | delegate?.imageTextAttachmentLoadImage(urlString) { [weak self] image in
| `- error: cannot infer type of closure parameter 'image' without a type annotation
80 | guard let image = image else { return }
81 | self?.status = .loaded(image)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:7:8: error: Unsupported platform
5 | import AppKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:10:28: error: cannot find type 'NSLayoutManager' in scope
8 | #endif
9 |
10 | final class LayoutManager: NSLayoutManager {
| `- error: cannot find type 'NSLayoutManager' in scope
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:11:19: error: method does not override any method from its superclass
9 |
10 | final class LayoutManager: NSLayoutManager {
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
| `- error: method does not override any method from its superclass
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:98:107: error: cannot find type 'NSTextContainer' in scope
96 | }
97 |
98 | func typographicBounds(ofGlyphRange glyphRange: NSRange, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect? {
| `- error: cannot find type 'NSTextContainer' in scope
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:124:43: error: cannot find type 'CGGlyph' in scope
122 | }
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
| `- error: cannot find type 'CGGlyph' in scope
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:124:148: error: cannot find type 'NSTextContainer' in scope
122 | }
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:12:9: error: 'super' members cannot be referenced in a root class
10 | final class LayoutManager: NSLayoutManager {
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
| `- error: 'super' members cannot be referenced in a root class
13 |
14 | drawBlockBackgrounds(forGlyphRange: glyphsToShow)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:22:29: error: cannot find 'textStorage' in scope
20 | private extension LayoutManager {
21 | func drawBlockBackgrounds(forGlyphRange glyphsToShow: NSRange) {
22 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
23 | return
24 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:26:35: error: value of type 'LayoutManager' has no member 'characterRange'
24 | }
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
28 | guard let blockBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:26:97: error: 'nil' requires a contextual type
24 | }
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
28 | guard let blockBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:27:37: error: cannot infer contextual base in reference to member 'blockBackground'
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'blockBackground'
28 | guard let blockBackground = value as? BackgroundValue else { return }
29 | drawBlockBackground(blockBackground, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:34:31: error: value of type 'LayoutManager' has no member 'glyphRange'
32 |
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
36 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:34:99: error: 'nil' requires a contextual type
32 |
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
36 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:35:31: error: cannot find 'textContainer' in scope
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: cannot find 'textContainer' in scope
36 | return
37 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:35:94: error: 'nil' requires a contextual type
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: 'nil' requires a contextual type
36 | return
37 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:38:21: error: cannot find 'boundingRect' in scope
36 | return
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: cannot find 'boundingRect' in scope
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:27: error: cannot find 'textStorage' in scope
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find 'textStorage' in scope
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:111: error: cannot find type 'NativeFont' in scope
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:140: error: value of type 'TextStyle' has no member 'makeFont'
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:51: error: cannot infer contextual base in reference to member 'font'
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:102: error: 'nil' requires a contextual type
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:44:29: error: cannot find 'textStorage' in scope
42 |
43 | func drawBackgroundBorders(forGlyphRange glyphsToShow: NSRange) {
44 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
45 | return
46 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:48:35: error: value of type 'LayoutManager' has no member 'characterRange'
46 | }
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:48:97: error: 'nil' requires a contextual type
46 | }
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:49:37: error: cannot infer contextual base in reference to member 'backgroundBorder'
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'backgroundBorder'
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
51 | drawBackgroundBorder(backgroundBorder, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:56:31: error: value of type 'LayoutManager' has no member 'glyphRange'
54 |
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
58 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:56:99: error: 'nil' requires a contextual type
54 |
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
58 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:57:31: error: cannot find 'textContainer' in scope
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: cannot find 'textContainer' in scope
58 | return
59 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:57:94: error: 'nil' requires a contextual type
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: 'nil' requires a contextual type
58 | return
59 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:60:21: error: cannot find 'boundingRect' in scope
58 | return
59 | }
60 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: cannot find 'boundingRect' in scope
61 | backgroundBorder.render(with: frame)
62 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:65:29: error: cannot find 'textStorage' in scope
63 |
64 | func drawInlineBackgrounds(forGlyphRange glyphsToShow: NSRange) {
65 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
66 | return
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:69:35: error: value of type 'LayoutManager' has no member 'characterRange'
67 | }
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
71 | guard let inlineBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:69:97: error: 'nil' requires a contextual type
67 | }
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
71 | guard let inlineBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:70:37: error: cannot infer contextual base in reference to member 'inlineBackground'
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'inlineBackground'
71 | guard let inlineBackground = value as? BackgroundValue else { return }
72 | drawInlineBackground(inlineBackground, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:27: error: cannot find 'textStorage' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find 'textStorage' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:111: error: cannot find type 'NativeFont' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:140: error: value of type 'TextStyle' has no member 'makeFont'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:51: error: cannot infer contextual base in reference to member 'font'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:102: error: 'nil' requires a contextual type
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:31: error: value of type 'LayoutManager' has no member 'glyphRange'
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:99: error: 'nil' requires a contextual type
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:87:9: error: cannot find 'enumerateLineFragments' in scope
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
| `- error: cannot find 'enumerateLineFragments' in scope
88 | guard let intersectingRange = glyphRange.intersection(lineRange) else { return }
89 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:99:43: error: cannot find type 'CGGlyph' in scope
97 |
98 | func typographicBounds(ofGlyphRange glyphRange: NSRange, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect? {
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
| `- error: cannot find type 'CGGlyph' in scope
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:26: error: value of type 'LayoutManager' has no member 'getGlyphs'
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: value of type 'LayoutManager' has no member 'getGlyphs'
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:80: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:133: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:125:29: error: value of type 'LayoutManager' has no member 'location'
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
127 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:107: error: cannot find type 'NativeFont' in scope
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:32: error: value of type 'LayoutManager' has no member 'textStorage'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'LayoutManager' has no member 'textStorage'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:136: error: value of type 'TextStyle' has no member 'makeFont'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:56: error: cannot infer contextual base in reference to member 'font'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:98: error: 'nil' requires a contextual type
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:130:33: error: cannot find 'boundingRect' in scope
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
129 | y: lineFrame.minY + location.y)
130 | let glyphBoundingRect = boundingRect(forGlyphRange: NSRange(location: glyphIndex, length: 1),
| `- error: cannot find 'boundingRect' in scope
131 | in: container)
132 | let ascender = defaultFont.ascender
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:134:16: error: no exact matches in call to initializer
132 | let ascender = defaultFont.ascender
133 | let descender = defaultFont.descender
134 | return CGRect(x: glyphBoundingRect.minX,
| `- error: no exact matches in call to initializer
135 | y: frameLocation.y - ascender,
136 | width: glyphBoundingRect.width,
Foundation.CGRect:3:12: note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
1 | extension CGRect {
2 | public static var zero: CGRect { get }
3 | public init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)
| `- note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
4 | public init(x: Double, y: Double, width: Double, height: Double)
| `- note: candidate expects value of type 'Double' for parameter #4 (got 'LineColumnCount')
5 | public init(x: Int, y: Int, width: Int, height: Int)
| `- note: candidate expects value of type 'Int' for parameter #4 (got 'LineColumnCount')
6 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:137:36: error: cannot find type 'NSLayoutManagerDelegate' in scope
135 | }
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
| `- error: cannot find type 'NSLayoutManagerDelegate' in scope
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:48: error: cannot find type 'NSLayoutManager' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSLayoutManager' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:256: error: cannot find type 'NSTextContainer' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSTextContainer' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:164: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:48: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:83: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:21:23: error: value of type 'LayoutManager' has no member 'delegate'
19 | public override init() {
20 | super.init()
21 | layoutManager.delegate = self
| `- error: value of type 'LayoutManager' has no member 'delegate'
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:31:23: error: value of type 'LayoutManager' has no member 'addTextContainer'
29 | container.layoutManager = self
30 | textContainers.append(container)
31 | layoutManager.addTextContainer(container.container)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
32 | }
33 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:41:23: error: value of type 'LayoutManager' has no member 'insertTextContainer'
39 | container.layoutManager = self
40 | textContainers.insert(container, at: index)
41 | layoutManager.insertTextContainer(container.container, at: index)
| `- error: value of type 'LayoutManager' has no member 'insertTextContainer'
42 | }
43 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:51:23: error: value of type 'LayoutManager' has no member 'removeTextContainer'
49 | container.layoutManager = nil
50 | textContainers.remove(at: index)
51 | layoutManager.removeTextContainer(at: index)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
52 | }
53 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:67: error: cannot find type 'NativeColor' in scope
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: cannot find type 'NativeColor' in scope
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:46: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: reference to member 'backgroundColor' cannot be resolved without a contextual type
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:59:20: error: value of type 'CGRect' has no member 'fill'
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
58 | backgroundColor.set()
59 | bounds.fill()
| `- error: value of type 'CGRect' has no member 'fill'
60 | } else {
61 | bounds.clear()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:61:20: error: value of type 'CGRect' has no member 'clear'
59 | bounds.fill()
60 | } else {
61 | bounds.clear()
| `- error: value of type 'CGRect' has no member 'clear'
62 | }
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:70:23: error: value of type 'LayoutManager' has no member 'drawGlyphs'
68 |
69 | public func drawGlyphs(forGlyphRange glyphRange: NSRange, at location: CGPoint) {
70 | layoutManager.drawGlyphs(forGlyphRange: glyphRange, at: location)
| `- error: value of type 'LayoutManager' has no member 'drawGlyphs'
71 | }
72 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:74:23: error: value of type 'LayoutManager' has no member 'glyphRange'
72 |
73 | public func glyphRange(for container: NativeMarkTextContainer) -> NSRange {
74 | layoutManager.glyphRange(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
75 | }
76 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:78:23: error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
76 |
77 | public func textContainerChangedGeometry(_ textContainer: NativeMarkTextContainer) {
78 | layoutManager.textContainerChangedGeometry(textContainer.container)
| `- error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
79 | }
80 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:82:23: error: value of type 'LayoutManager' has no member 'usedRect'
80 |
81 | public func usedRect(for container: NativeMarkTextContainer) -> CGRect {
82 | layoutManager.usedRect(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'usedRect'
83 | }
84 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:40: error: value of type 'LayoutManager' has no member 'glyphRange'
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:108: error: 'nil' requires a contextual type
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:87:41: error: value of type 'LayoutManager' has no member 'boundingRect'
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:88:23: error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
| `- error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
90 | in: container.container) { rect, stop in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:98:23: error: value of type 'LayoutManager' has no member 'characterIndex'
96 |
97 | public func characterIndex(for location: CGPoint, in container: NativeMarkTextContainer, fractionOfDistanceBetweenInsertionPoints partialFraction: UnsafeMutablePointer<CGFloat>?) -> Int {
98 | layoutManager.characterIndex(for: location, in: container.container, fractionOfDistanceBetweenInsertionPoints: partialFraction)
| `- error: value of type 'LayoutManager' has no member 'characterIndex'
99 | }
100 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:102:23: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
100 |
101 | public func glyphIndexForCharacter(at characterIndex: Int) -> Int {
102 | layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
103 | }
104 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:109:23: error: value of type 'LayoutManager' has no member 'invalidateLayout'
107 | func invalidateImage(in characterRange: NSRange) {
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateLayout'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:110:23: error: value of type 'LayoutManager' has no member 'invalidateDisplay'
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateDisplay'
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:40: error: value of type 'LayoutManager' has no member 'glyphRange'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:105: error: 'nil' requires a contextual type
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:42: error: value of type 'LayoutManager' has no member 'textContainer'
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: value of type 'LayoutManager' has no member 'textContainer'
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:105: error: 'nil' requires a contextual type
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: 'nil' requires a contextual type
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:116:40: error: value of type 'LayoutManager' has no member 'boundingRect'
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
117 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
118 | } else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:122:48: error: value of type 'LayoutManager' has no member 'glyphRange'
120 | // Brute force the updates
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:123:44: error: value of type 'LayoutManager' has no member 'boundingRect'
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
125 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:130:40: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
128 |
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:46: error: value of type 'LayoutManager' has no member 'lineFragmentRect'
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: value of type 'LayoutManager' has no member 'lineFragmentRect'
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:103: error: 'nil' requires a contextual type
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: 'nil' requires a contextual type
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:132:60: error: value of type 'LayoutManager' has no member 'location'
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
134 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:139:104: error: 'nil' requires a contextual type
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
140 |
141 | var effectiveRange = characterRange
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:111: error: cannot find type 'NativeFont' in scope
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:51: error: type 'NSAttributedString.Key' has no member 'font'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:140: error: value of type 'TextStyle' has no member 'makeFont'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:10:26: error: cannot find type 'NSTextStorage' in scope
8 | public final class NativeMarkStorage {
9 | public private(set) var layoutManagers = [NativeMarkLayoutManager]()
10 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
11 | public var nativeMarkString: NativeMarkString {
12 | didSet {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:19:24: error: cannot find 'NSTextStorage' in scope
17 | public init(nativeMarkString: NativeMarkString) {
18 | self.nativeMarkString = nativeMarkString
19 | self.storage = NSTextStorage(attributedString: nativeMarkString.attributedString)
| `- error: cannot find 'NSTextStorage' in scope
20 | setDelegateForImageAttachments()
21 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:55:37: error: cannot infer contextual base in reference to member 'nativeMarkLink'
53 | public func links() -> [(url: URL, range: Range<String.Index>, nsRange: NSRange)] {
54 | var links = [(url: URL, range: Range<String.Index>, nsRange: NSRange)]()
55 | storage.enumerateAttribute(.nativeMarkLink, in: NSRange(location: 0, length: storage.length), options: []) { attributeValue, attributeRange, _ in
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
56 | guard let url = attributeValue as? NSURL,
57 | let labelRange = Range(attributeRange, in: storage.string) else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:28: error: cannot infer contextual base in reference to member 'nativeMarkLink'
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:80: error: 'nil' requires a contextual type
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: 'nil' requires a contextual type
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:87:37: error: cannot infer contextual base in reference to member 'attachment'
85 |
86 | func setDelegateForImageAttachments() {
87 | storage.enumerateAttribute(.attachment, in: NSRange(location: 0, length: storage.length), options: []) { value, _, _ in
| `- error: cannot infer contextual base in reference to member 'attachment'
88 | guard let imageAttachment = value as? ImageTextAttachment else { return }
89 | imageAttachment.layoutDelegate = self
[111/127] Compiling NativeMarkKit NativeMarkStorage.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:13:33: error: cannot find type 'NativeColor' in scope
11 | let sides: BorderSides
12 |
13 | init(width: CGFloat, color: NativeColor, sides: BorderSides) {
| `- error: cannot find type 'NativeColor' in scope
14 | self.width = width
15 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:10:16: error: cannot find type 'NativeColor' in scope
8 | final class BackgroundBorderValue: NSObject {
9 | let width: CGFloat
10 | let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
11 | let sides: BorderSides
12 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:23:45: error: value of type 'CGRect' has no member 'fill'
21 |
22 | if sides.contains(.left) {
23 | leftFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
24 | }
25 | if sides.contains(.top) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:26:44: error: value of type 'CGRect' has no member 'fill'
24 | }
25 | if sides.contains(.top) {
26 | topFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
27 | }
28 | if sides.contains(.right) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:29:46: error: value of type 'CGRect' has no member 'fill'
27 | }
28 | if sides.contains(.right) {
29 | rightFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
30 | }
31 | if sides.contains(.bottom) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundBorderValue.swift:32:47: error: value of type 'CGRect' has no member 'fill'
30 | }
31 | if sides.contains(.bottom) {
32 | bottomFrame(for: backgroundFrame).fill()
| `- error: value of type 'CGRect' has no member 'fill'
33 | }
34 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:10:23: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let left = BorderSides(rawValue: 1 << 0)
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:12:23: warning: static property 'top' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let left = BorderSides(rawValue: 1 << 0)
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
| |- warning: static property 'top' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'top' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:11:23: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let left = BorderSides(rawValue: 1 << 0)
11 | public static let right = BorderSides(rawValue: 1 << 1)
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let top = BorderSides(rawValue: 1 << 2)
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/BorderSides.swift:13:23: warning: static property 'bottom' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct BorderSides: OptionSet {
| `- note: consider making struct 'BorderSides' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let right = BorderSides(rawValue: 1 << 1)
12 | public static let top = BorderSides(rawValue: 1 << 2)
13 | public static let bottom = BorderSides(rawValue: 1 << 3)
| |- warning: static property 'bottom' is not concurrency-safe because non-'Sendable' type 'BorderSides' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bottom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public static let all: BorderSides = [.left, .right, .top, .bottom]
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:18:21: error: cannot find type 'NativeColor' in scope
16 | let rightMargin: Length
17 |
18 | init(fillColor: NativeColor, strokeColor: NativeColor, strokeWidth: CGFloat,
| `- error: cannot find type 'NativeColor' in scope
19 | cornerRadius: CGFloat, topMargin: Length, bottomMargin: Length,
20 | leftMargin: Length, rightMargin: Length) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:18:47: error: cannot find type 'NativeColor' in scope
16 | let rightMargin: Length
17 |
18 | init(fillColor: NativeColor, strokeColor: NativeColor, strokeWidth: CGFloat,
| `- error: cannot find type 'NativeColor' in scope
19 | cornerRadius: CGFloat, topMargin: Length, bottomMargin: Length,
20 | leftMargin: Length, rightMargin: Length) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:9:20: error: cannot find type 'NativeColor' in scope
7 |
8 | final class BackgroundValue: NSObject {
9 | let fillColor: NativeColor
| `- error: cannot find type 'NativeColor' in scope
10 | let strokeColor: NativeColor
11 | let strokeWidth: CGFloat
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:10:22: error: cannot find type 'NativeColor' in scope
8 | final class BackgroundValue: NSObject {
9 | let fillColor: NativeColor
10 | let strokeColor: NativeColor
| `- error: cannot find type 'NativeColor' in scope
11 | let strokeWidth: CGFloat
12 | let cornerRadius: CGFloat
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:32:47: error: cannot find type 'NativeFont' in scope
30 | }
31 |
32 | func render(in rect: CGRect, defaultFont: NativeFont) {
| `- error: cannot find type 'NativeFont' in scope
33 | let topMarginInPts = topMargin.asRawPoints(for: defaultFont.pointSize)
34 | let bottomMarginInPts = bottomMargin.asRawPoints(for: defaultFont.pointSize)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BackgroundValue.swift:43:20: error: cannot find 'NativeBezierPath' in scope
41 | height: round(rect.height + topMarginInPts + bottomMarginInPts) - strokeWidth)
42 |
43 | let path = NativeBezierPath(roundedRect: frame, cornerRadius: cornerRadius)
| `- error: cannot find 'NativeBezierPath' in scope
44 | path.lineWidth = strokeWidth
45 | fillColor.setFill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:9:83: error: cannot find type 'NativeImage' in scope
7 |
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
11 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:10:65: error: cannot find type 'NativeImage' in scope
8 | protocol ImageTextAttachmentDelegate: AnyObject {
9 | func imageTextAttachmentLoadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
10 | func imageTextAttachmentResize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:21:21: error: cannot find type 'NativeImage' in scope
19 | case idle
20 | case loading
21 | case loaded(NativeImage)
| `- error: cannot find type 'NativeImage' in scope
22 | }
23 | private let imageUrl: String?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:47:51: error: cannot find type 'NSTextContainer' in scope
45 | }
46 |
47 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
48 | if let image = loadImage() {
49 | if let resized = delegate?.imageTextAttachmentResize(imageUrl, image: image, lineFragment: lineFrag) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:47:19: error: method does not override any method from its superclass
45 | }
46 |
47 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: method does not override any method from its superclass
48 | if let image = loadImage() {
49 | if let resized = delegate?.imageTextAttachmentResize(imageUrl, image: image, lineFragment: lineFrag) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:61:25: error: cannot find type 'NativeImage' in scope
59 |
60 | private extension ImageTextAttachment {
61 | func loadImage() -> NativeImage? {
| `- error: cannot find type 'NativeImage' in scope
62 | switch status {
63 | case .idle:
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:42:13: error: cannot find 'NativeColor' in scope
40 | image.draw(in: drawRect)
41 | } else {
42 | NativeColor.adaptableImagePlaceholderColor.set()
| `- error: cannot find 'NativeColor' in scope
43 | rect.fill()
44 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:43:18: error: value of type 'CGRect' has no member 'fill'
41 | } else {
42 | NativeColor.adaptableImagePlaceholderColor.set()
43 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
44 | }
45 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ImageTextAttachment.swift:79:73: error: cannot infer type of closure parameter 'image' without a type annotation
77 |
78 | status = .loading
79 | delegate?.imageTextAttachmentLoadImage(urlString) { [weak self] image in
| `- error: cannot infer type of closure parameter 'image' without a type annotation
80 | guard let image = image else { return }
81 | self?.status = .loaded(image)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:7:8: error: Unsupported platform
5 | import AppKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:10:28: error: cannot find type 'NSLayoutManager' in scope
8 | #endif
9 |
10 | final class LayoutManager: NSLayoutManager {
| `- error: cannot find type 'NSLayoutManager' in scope
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:11:19: error: method does not override any method from its superclass
9 |
10 | final class LayoutManager: NSLayoutManager {
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
| `- error: method does not override any method from its superclass
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:98:107: error: cannot find type 'NSTextContainer' in scope
96 | }
97 |
98 | func typographicBounds(ofGlyphRange glyphRange: NSRange, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect? {
| `- error: cannot find type 'NSTextContainer' in scope
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:124:43: error: cannot find type 'CGGlyph' in scope
122 | }
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
| `- error: cannot find type 'CGGlyph' in scope
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:124:148: error: cannot find type 'NSTextContainer' in scope
122 | }
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:12:9: error: 'super' members cannot be referenced in a root class
10 | final class LayoutManager: NSLayoutManager {
11 | override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
12 | super.drawBackground(forGlyphRange: glyphsToShow, at: origin)
| `- error: 'super' members cannot be referenced in a root class
13 |
14 | drawBlockBackgrounds(forGlyphRange: glyphsToShow)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:22:29: error: cannot find 'textStorage' in scope
20 | private extension LayoutManager {
21 | func drawBlockBackgrounds(forGlyphRange glyphsToShow: NSRange) {
22 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
23 | return
24 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:26:35: error: value of type 'LayoutManager' has no member 'characterRange'
24 | }
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
28 | guard let blockBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:26:97: error: 'nil' requires a contextual type
24 | }
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
28 | guard let blockBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:27:37: error: cannot infer contextual base in reference to member 'blockBackground'
25 |
26 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
27 | storage.enumerateAttribute(.blockBackground, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'blockBackground'
28 | guard let blockBackground = value as? BackgroundValue else { return }
29 | drawBlockBackground(blockBackground, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:34:31: error: value of type 'LayoutManager' has no member 'glyphRange'
32 |
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
36 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:34:99: error: 'nil' requires a contextual type
32 |
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
36 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:35:31: error: cannot find 'textContainer' in scope
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: cannot find 'textContainer' in scope
36 | return
37 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:35:94: error: 'nil' requires a contextual type
33 | func drawBlockBackground(_ blockBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
34 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
35 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: 'nil' requires a contextual type
36 | return
37 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:38:21: error: cannot find 'boundingRect' in scope
36 | return
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: cannot find 'boundingRect' in scope
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:27: error: cannot find 'textStorage' in scope
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find 'textStorage' in scope
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:111: error: cannot find type 'NativeFont' in scope
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:140: error: value of type 'TextStyle' has no member 'makeFont'
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:51: error: cannot infer contextual base in reference to member 'font'
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:39:102: error: 'nil' requires a contextual type
37 | }
38 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
39 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
40 | blockBackground.render(in: frame, defaultFont: defaultFont)
41 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:44:29: error: cannot find 'textStorage' in scope
42 |
43 | func drawBackgroundBorders(forGlyphRange glyphsToShow: NSRange) {
44 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
45 | return
46 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:48:35: error: value of type 'LayoutManager' has no member 'characterRange'
46 | }
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:48:97: error: 'nil' requires a contextual type
46 | }
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:49:37: error: cannot infer contextual base in reference to member 'backgroundBorder'
47 |
48 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
49 | storage.enumerateAttribute(.backgroundBorder, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'backgroundBorder'
50 | guard let backgroundBorder = value as? BackgroundBorderValue else { return }
51 | drawBackgroundBorder(backgroundBorder, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:56:31: error: value of type 'LayoutManager' has no member 'glyphRange'
54 |
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
58 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:56:99: error: 'nil' requires a contextual type
54 |
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
58 | return
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:57:31: error: cannot find 'textContainer' in scope
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: cannot find 'textContainer' in scope
58 | return
59 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:57:94: error: 'nil' requires a contextual type
55 | func drawBackgroundBorder(_ backgroundBorder: BackgroundBorderValue, forCharacterRange characterRange: NSRange) {
56 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
57 | guard let container = textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil) else {
| `- error: 'nil' requires a contextual type
58 | return
59 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:60:21: error: cannot find 'boundingRect' in scope
58 | return
59 | }
60 | let frame = boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: cannot find 'boundingRect' in scope
61 | backgroundBorder.render(with: frame)
62 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:65:29: error: cannot find 'textStorage' in scope
63 |
64 | func drawInlineBackgrounds(forGlyphRange glyphsToShow: NSRange) {
65 | guard let storage = textStorage else {
| `- error: cannot find 'textStorage' in scope
66 | return
67 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:69:35: error: value of type 'LayoutManager' has no member 'characterRange'
67 | }
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: value of type 'LayoutManager' has no member 'characterRange'
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
71 | guard let inlineBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:69:97: error: 'nil' requires a contextual type
67 | }
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
71 | guard let inlineBackground = value as? BackgroundValue else { return }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:70:37: error: cannot infer contextual base in reference to member 'inlineBackground'
68 |
69 | let characterRange = self.characterRange(forGlyphRange: glyphsToShow, actualGlyphRange: nil)
70 | storage.enumerateAttribute(.inlineBackground, in: characterRange, options: []) { value, range, stop in
| `- error: cannot infer contextual base in reference to member 'inlineBackground'
71 | guard let inlineBackground = value as? BackgroundValue else { return }
72 | drawInlineBackground(inlineBackground, forCharacterRange: range)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:27: error: cannot find 'textStorage' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find 'textStorage' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:111: error: cannot find type 'NativeFont' in scope
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:140: error: value of type 'TextStyle' has no member 'makeFont'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:51: error: cannot infer contextual base in reference to member 'font'
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:77:102: error: 'nil' requires a contextual type
75 |
76 | func drawInlineBackground(_ inlineBackground: BackgroundValue, forCharacterRange characterRange: NSRange) {
77 | let defaultFont = textStorage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
78 |
79 | enumerateTypographicBounds(forCharacterRange: characterRange) { glyphRange, lineFrame in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:31: error: value of type 'LayoutManager' has no member 'glyphRange'
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:85:99: error: 'nil' requires a contextual type
83 |
84 | func enumerateTypographicBounds(forCharacterRange characterRange: NSRange, with block: @escaping (NSRange, CGRect) -> Void) {
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:87:9: error: cannot find 'enumerateLineFragments' in scope
85 | let glyphRange = self.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
86 |
87 | enumerateLineFragments(forGlyphRange: glyphRange) { lineFrame, usedRect, container, lineRange, _ in
| `- error: cannot find 'enumerateLineFragments' in scope
88 | guard let intersectingRange = glyphRange.intersection(lineRange) else { return }
89 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:99:43: error: cannot find type 'CGGlyph' in scope
97 |
98 | func typographicBounds(ofGlyphRange glyphRange: NSRange, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect? {
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
| `- error: cannot find type 'CGGlyph' in scope
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:26: error: value of type 'LayoutManager' has no member 'getGlyphs'
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: value of type 'LayoutManager' has no member 'getGlyphs'
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:80: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:101:133: error: 'nil' requires a contextual type
99 | let glyphs = UnsafeMutablePointer<CGGlyph>.allocate(capacity: glyphRange.length)
100 | let characterIndices = UnsafeMutablePointer<Int>.allocate(capacity: glyphRange.length)
101 | let count = self.getGlyphs(in: glyphRange, glyphs: glyphs, properties: nil, characterIndexes: characterIndices, bidiLevels: nil)
| `- error: 'nil' requires a contextual type
102 |
103 | var totalFrame: CGRect?
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:125:29: error: value of type 'LayoutManager' has no member 'location'
123 |
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
127 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:107: error: cannot find type 'NativeFont' in scope
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:32: error: value of type 'LayoutManager' has no member 'textStorage'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'LayoutManager' has no member 'textStorage'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:136: error: value of type 'TextStyle' has no member 'makeFont'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:56: error: cannot infer contextual base in reference to member 'font'
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot infer contextual base in reference to member 'font'
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:126:98: error: 'nil' requires a contextual type
124 | func typographicBounds(ofGlyph glyph: CGGlyph, atGlyphIndex glyphIndex: Int, characterIndex: Int, onLineFragment lineFrame: CGRect, container: NSTextContainer) -> CGRect {
125 | let location = self.location(forGlyphAt: glyphIndex)
126 | let defaultFont = self.textStorage?.attribute(.font, at: characterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: 'nil' requires a contextual type
127 |
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:130:33: error: cannot find 'boundingRect' in scope
128 | let frameLocation = CGPoint(x: lineFrame.minX + location.x,
129 | y: lineFrame.minY + location.y)
130 | let glyphBoundingRect = boundingRect(forGlyphRange: NSRange(location: glyphIndex, length: 1),
| `- error: cannot find 'boundingRect' in scope
131 | in: container)
132 | let ascender = defaultFont.ascender
/host/spi-builder-workspace/Sources/NativeMarkKit/render/LayoutManager.swift:134:16: error: no exact matches in call to initializer
132 | let ascender = defaultFont.ascender
133 | let descender = defaultFont.descender
134 | return CGRect(x: glyphBoundingRect.minX,
| `- error: no exact matches in call to initializer
135 | y: frameLocation.y - ascender,
136 | width: glyphBoundingRect.width,
Foundation.CGRect:3:12: note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
1 | extension CGRect {
2 | public static var zero: CGRect { get }
3 | public init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)
| `- note: candidate expects value of type 'CGFloat' for parameter #4 (got 'LineColumnCount')
4 | public init(x: Double, y: Double, width: Double, height: Double)
| `- note: candidate expects value of type 'Double' for parameter #4 (got 'LineColumnCount')
5 | public init(x: Int, y: Int, width: Int, height: Int)
| `- note: candidate expects value of type 'Int' for parameter #4 (got 'LineColumnCount')
6 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeImage.swift:35:8: error: Unsupported platform
33 |
34 | #else
35 | #error("Unsupported platform")
| `- error: Unsupported platform
36 | #endif
37 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:137:36: error: cannot find type 'NSLayoutManagerDelegate' in scope
135 | }
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
| `- error: cannot find type 'NSLayoutManagerDelegate' in scope
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:48: error: cannot find type 'NSLayoutManager' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSLayoutManager' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:138:256: error: cannot find type 'NSTextContainer' in scope
136 |
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
| `- error: cannot find type 'NSTextContainer' in scope
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
140 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:164: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:48: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:182:83: error: cannot find type 'NSLayoutManager' in scope
180 | }
181 |
182 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction {
| `- error: cannot find type 'NSLayoutManager' in scope
183 | let ch = storage?.character(at: charIndex)
184 | if ch == 13 /* \r */ {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:21:23: error: value of type 'LayoutManager' has no member 'delegate'
19 | public override init() {
20 | super.init()
21 | layoutManager.delegate = self
| `- error: value of type 'LayoutManager' has no member 'delegate'
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:31:23: error: value of type 'LayoutManager' has no member 'addTextContainer'
29 | container.layoutManager = self
30 | textContainers.append(container)
31 | layoutManager.addTextContainer(container.container)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
32 | }
33 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:41:23: error: value of type 'LayoutManager' has no member 'insertTextContainer'
39 | container.layoutManager = self
40 | textContainers.insert(container, at: index)
41 | layoutManager.insertTextContainer(container.container, at: index)
| `- error: value of type 'LayoutManager' has no member 'insertTextContainer'
42 | }
43 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:51:23: error: value of type 'LayoutManager' has no member 'removeTextContainer'
49 | container.layoutManager = nil
50 | textContainers.remove(at: index)
51 | layoutManager.removeTextContainer(at: index)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
52 | }
53 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:67: error: cannot find type 'NativeColor' in scope
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: cannot find type 'NativeColor' in scope
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:57:46: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
55 | var attributes = [NSAttributedString.Key: Any]()
56 | storage?.nativeMarkString.styleSheet.styles(for: .document).updateAttributes(&attributes)
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
| `- error: reference to member 'backgroundColor' cannot be resolved without a contextual type
58 | backgroundColor.set()
59 | bounds.fill()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:59:20: error: value of type 'CGRect' has no member 'fill'
57 | if let backgroundColor = attributes[.backgroundColor] as? NativeColor {
58 | backgroundColor.set()
59 | bounds.fill()
| `- error: value of type 'CGRect' has no member 'fill'
60 | } else {
61 | bounds.clear()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:61:20: error: value of type 'CGRect' has no member 'clear'
59 | bounds.fill()
60 | } else {
61 | bounds.clear()
| `- error: value of type 'CGRect' has no member 'clear'
62 | }
63 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:70:23: error: value of type 'LayoutManager' has no member 'drawGlyphs'
68 |
69 | public func drawGlyphs(forGlyphRange glyphRange: NSRange, at location: CGPoint) {
70 | layoutManager.drawGlyphs(forGlyphRange: glyphRange, at: location)
| `- error: value of type 'LayoutManager' has no member 'drawGlyphs'
71 | }
72 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:74:23: error: value of type 'LayoutManager' has no member 'glyphRange'
72 |
73 | public func glyphRange(for container: NativeMarkTextContainer) -> NSRange {
74 | layoutManager.glyphRange(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
75 | }
76 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:78:23: error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
76 |
77 | public func textContainerChangedGeometry(_ textContainer: NativeMarkTextContainer) {
78 | layoutManager.textContainerChangedGeometry(textContainer.container)
| `- error: value of type 'LayoutManager' has no member 'textContainerChangedGeometry'
79 | }
80 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:82:23: error: value of type 'LayoutManager' has no member 'usedRect'
80 |
81 | public func usedRect(for container: NativeMarkTextContainer) -> CGRect {
82 | layoutManager.usedRect(for: container.container)
| `- error: value of type 'LayoutManager' has no member 'usedRect'
83 | }
84 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:40: error: value of type 'LayoutManager' has no member 'glyphRange'
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:86:108: error: 'nil' requires a contextual type
84 |
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:87:41: error: value of type 'LayoutManager' has no member 'boundingRect'
85 | public func accessibilityFrame(for characterRange: NSRange, in container: NativeMarkTextContainer) -> CGRect {
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:88:23: error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
86 | let glyphRange = layoutManager.glyphRange(forCharacterRange: characterRange, actualCharacterRange: nil)
87 | var rangeBounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container.container)
88 | layoutManager.enumerateEnclosingRects(forGlyphRange: glyphRange,
| `- error: value of type 'LayoutManager' has no member 'enumerateEnclosingRects'
89 | withinSelectedGlyphRange: NSRange(location: NSNotFound, length: 0),
90 | in: container.container) { rect, stop in
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:98:23: error: value of type 'LayoutManager' has no member 'characterIndex'
96 |
97 | public func characterIndex(for location: CGPoint, in container: NativeMarkTextContainer, fractionOfDistanceBetweenInsertionPoints partialFraction: UnsafeMutablePointer<CGFloat>?) -> Int {
98 | layoutManager.characterIndex(for: location, in: container.container, fractionOfDistanceBetweenInsertionPoints: partialFraction)
| `- error: value of type 'LayoutManager' has no member 'characterIndex'
99 | }
100 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:102:23: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
100 |
101 | public func glyphIndexForCharacter(at characterIndex: Int) -> Int {
102 | layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
103 | }
104 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:109:23: error: value of type 'LayoutManager' has no member 'invalidateLayout'
107 | func invalidateImage(in characterRange: NSRange) {
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateLayout'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:110:23: error: value of type 'LayoutManager' has no member 'invalidateDisplay'
108 | var actualRange = NSRange()
109 | layoutManager.invalidateLayout(forCharacterRange: characterRange, actualCharacterRange: &actualRange)
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
| `- error: value of type 'LayoutManager' has no member 'invalidateDisplay'
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:40: error: value of type 'LayoutManager' has no member 'glyphRange'
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:112:105: error: 'nil' requires a contextual type
110 | layoutManager.invalidateDisplay(forCharacterRange: actualRange)
111 |
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
| `- error: 'nil' requires a contextual type
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:42: error: value of type 'LayoutManager' has no member 'textContainer'
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: value of type 'LayoutManager' has no member 'textContainer'
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:114:105: error: 'nil' requires a contextual type
112 | let glyphRange = layoutManager.glyphRange(forCharacterRange: actualRange, actualCharacterRange: nil)
113 |
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
| `- error: 'nil' requires a contextual type
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:116:40: error: value of type 'LayoutManager' has no member 'boundingRect'
114 | if let container = layoutManager.textContainer(forGlyphAt: glyphRange.location, effectiveRange: nil),
115 | let wrappedContainer = textContainers.first(where: { $0.container === container }) {
116 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
117 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
118 | } else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:122:48: error: value of type 'LayoutManager' has no member 'glyphRange'
120 | // Brute force the updates
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'glyphRange'
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:123:44: error: value of type 'LayoutManager' has no member 'boundingRect'
121 | for wrappedContainer in textContainers {
122 | let glyphRange = layoutManager.glyphRange(for: wrappedContainer.container)
123 | let bounds = layoutManager.boundingRect(forGlyphRange: glyphRange, in: wrappedContainer.container)
| `- error: value of type 'LayoutManager' has no member 'boundingRect'
124 | delegate?.layoutManager(self, invalidateFrame: bounds, inContainer: wrappedContainer)
125 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:130:40: error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
128 |
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
| `- error: value of type 'LayoutManager' has no member 'glyphIndexForCharacter'
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:46: error: value of type 'LayoutManager' has no member 'lineFragmentRect'
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: value of type 'LayoutManager' has no member 'lineFragmentRect'
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:131:103: error: 'nil' requires a contextual type
129 | func horizontalLocation(for characterIndex: Int) -> CGFloat {
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
| `- error: 'nil' requires a contextual type
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:132:60: error: value of type 'LayoutManager' has no member 'location'
130 | let glyphIndex = layoutManager.glyphIndexForCharacter(at: characterIndex)
131 | let lineFragmentRect = layoutManager.lineFragmentRect(forGlyphAt: glyphIndex, effectiveRange: nil)
132 | let locationInsideLineFragmentRect = layoutManager.location(forGlyphAt: glyphIndex)
| `- error: value of type 'LayoutManager' has no member 'location'
133 | return lineFragmentRect.minX + locationInsideLineFragmentRect.x
134 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:139:104: error: 'nil' requires a contextual type
137 | extension NativeMarkLayoutManager: NSLayoutManagerDelegate {
138 | public func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) -> Bool {
139 | let characterRange = layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)
| `- error: 'nil' requires a contextual type
140 |
141 | var effectiveRange = characterRange
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:111: error: cannot find type 'NativeFont' in scope
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: cannot find type 'NativeFont' in scope
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:51: error: type 'NSAttributedString.Key' has no member 'font'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: type 'NSAttributedString.Key' has no member 'font'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLayoutManager.swift:145:140: error: value of type 'TextStyle' has no member 'makeFont'
143 | let isAtStart = characterRange.location == effectiveRange.location
144 | let isAtEnd = characterRange.upperBound == effectiveRange.upperBound
145 | let defaultFont = storage?.attribute(.font, at: characterRange.location, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
| `- error: value of type 'TextStyle' has no member 'makeFont'
146 |
147 | let topMargin = isAtStart ? blockBackground.topMargin.asRawPoints(for: defaultFont.pointSize) : 0
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:10:26: error: cannot find type 'NSTextStorage' in scope
8 | public final class NativeMarkStorage {
9 | public private(set) var layoutManagers = [NativeMarkLayoutManager]()
10 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
11 | public var nativeMarkString: NativeMarkString {
12 | didSet {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:19:24: error: cannot find 'NSTextStorage' in scope
17 | public init(nativeMarkString: NativeMarkString) {
18 | self.nativeMarkString = nativeMarkString
19 | self.storage = NSTextStorage(attributedString: nativeMarkString.attributedString)
| `- error: cannot find 'NSTextStorage' in scope
20 | setDelegateForImageAttachments()
21 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:55:37: error: cannot infer contextual base in reference to member 'nativeMarkLink'
53 | public func links() -> [(url: URL, range: Range<String.Index>, nsRange: NSRange)] {
54 | var links = [(url: URL, range: Range<String.Index>, nsRange: NSRange)]()
55 | storage.enumerateAttribute(.nativeMarkLink, in: NSRange(location: 0, length: storage.length), options: []) { attributeValue, attributeRange, _ in
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
56 | guard let url = attributeValue as? NSURL,
57 | let labelRange = Range(attributeRange, in: storage.string) else {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:28: error: cannot infer contextual base in reference to member 'nativeMarkLink'
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: cannot infer contextual base in reference to member 'nativeMarkLink'
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:66:80: error: 'nil' requires a contextual type
64 |
65 | public func link(at characterIndex: Int) -> URL? {
66 | storage.attribute(.nativeMarkLink, at: characterIndex, effectiveRange: nil) as? URL
| `- error: 'nil' requires a contextual type
67 | }
68 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkStorage.swift:87:37: error: cannot infer contextual base in reference to member 'attachment'
85 |
86 | func setDelegateForImageAttachments() {
87 | storage.enumerateAttribute(.attachment, in: NSRange(location: 0, length: storage.length), options: []) { value, _, _ in
| `- error: cannot infer contextual base in reference to member 'attachment'
88 | guard let imageAttachment = value as? ImageTextAttachment else { return }
89 | imageAttachment.layoutDelegate = self
[112/127] Compiling NativeMarkKit BlockStartParser.swift
[113/127] Compiling NativeMarkKit DocumentBlockParser.swift
[114/127] Compiling NativeMarkKit FencedCodeBlockParser.swift
[115/127] Compiling NativeMarkKit FencedCodeBlockStarter.swift
[116/127] Compiling NativeMarkKit HeadingBlockParser.swift
[117/127] Compiling NativeMarkKit IndentedCodeBlockParser.swift
[118/127] Compiling NativeMarkKit IndentedCodeBlockStarter.swift
[119/127] Compiling NativeMarkKit ItemBlockParser.swift
[120/127] Compiling NativeMarkKit ItemBlockStarter.swift
[121/127] Compiling NativeMarkKit LineInserter.swift
[122/127] Compiling NativeMarkKit LineParser.swift
[123/127] Compiling NativeMarkKit LineResult.swift
[124/127] Compiling NativeMarkKit LinkDefinitionsLineParser.swift
[125/127] Compiling NativeMarkKit ListBlockParser.swift
[126/127] Compiling NativeMarkKit ListKind.swift
[127/127] Compiling NativeMarkKit ListStyle.swift
BUILD FAILURE 6.0 linux