Build Information
Successful build of SwiftStreamingMarkdown, reference v0.7.0 (5f7c04), with Swift 6.1 for macOS (SPM) on 11 Aug 2026 22:41:10 UTC.
Swift 6 data race errors: 30
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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 InferSendableFromCapturesBuild Log
56 | activeAnimations.removeAll()
| `- warning: cannot access property 'activeAnimations' here in deinitializer; this is an error in the Swift 6 language mode
57 | }
58 |
[510/548] Compiling SwiftStreamingMarkdown Typography.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[511/548] Compiling SwiftStreamingMarkdown FadeInTextTransition.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[512/548] Compiling SwiftStreamingMarkdown FadeInTextTransitionViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[513/548] Compiling SwiftStreamingMarkdown BlockMathView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[514/548] Compiling SwiftStreamingMarkdown BlockQuoteView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[515/548] Compiling SwiftStreamingMarkdown BlockView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[516/548] Compiling SwiftStreamingMarkdown CodeBlockView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[517/548] Compiling SwiftStreamingMarkdown DocumentView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[518/548] Compiling SwiftStreamingMarkdown EdgeBorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[519/548] Compiling SwiftStreamingMarkdown HighlightTaskManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:46:21: warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | switch self {
45 | case .fixedDuration(let duration, let glyphDelay, let glyphDuration):
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(duration:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:50:3: note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
48 | let glyphDuration: TimeInterval
49 |
50 | init(duration: TimeInterval, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(duration:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
51 | self.totalDuration = duration
52 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransitionViewModifier.swift:48:21: warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | AnyTransition(FixedDurationFadeInTextTransition(duration: duration, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
47 | case .variableDuration(let glyphCount, let glyphDelay, let glyphDuration):
48 | AnyTransition(VariableDurationFadeInTextTransition(totalGlyphs: glyphCount, glyphDelay: glyphDelay, glyphDuration: glyphDuration))
| `- warning: call to main actor-isolated initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/TextTransition/FadeInTextTransition.swift:21:3: note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
19 | let totalDuration: TimeInterval
20 |
21 | init(totalGlyphs: Int, glyphDelay: TimeInterval, glyphDuration: TimeInterval) {
| |- note: calls to initializer 'init(totalGlyphs:glyphDelay:glyphDuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'Transition'
22 | self.totalGlyphs = totalGlyphs
23 | self.glyphDelay = glyphDelay
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:123:7: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
121 | )
122 | })
123 | }.onChange(of: copied, perform: { isCopied in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
124 | if isCopied {
125 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:131:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
129 | }
130 | })
131 | .onChange(of: code, perform: { value in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
132 | Task {
133 | await updateAttributedString(code: value, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:136:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
134 | }
135 | })
136 | .onChange(of: colorScheme, perform: { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
137 | Task {
138 | await updateAttributedString(code: code, scheme: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:141:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
139 | }
140 | })
141 | .onChange(of: config, perform: { _ in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
142 | Task {
143 | await updateAttributedString(code: code, scheme: colorScheme)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:43:6: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
41 | await controller.onAppear(markdown: renderableDocument)
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
44 | controller.onChange(markdown: md)
45 | })
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/CodeBlockView.swift:31:23: warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
29 | private func updateAttributedString(code: String, scheme: ColorScheme) async {
30 | let colors = config.codeBlockConfig.theme.highlightColors(for: scheme)
31 | await taskManager.enqueueCode(code, colors: colors) { newAttributedString in
| |- warning: sending value of non-Sendable type '(AttributedString) -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type '(AttributedString) -> ()' to actor-isolated instance method 'enqueueCode(_:colors:completion:)' risks causing races in between main actor-isolated and actor-isolated uses
32 | self.attributedString = newAttributedString
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:41:24: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
39 | .environment(\.markdownController, controller)
40 | .task {
41 | await controller.onAppear(markdown: renderableDocument)
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
42 | }
43 | .onChange(of: renderableDocument, perform: { md in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/DocumentView.swift:48:26: warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
46 | .onDisappear {
47 | Task {
48 | await controller.onDisappear()
| |- warning: sending 'self.controller' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.controller' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/HighlightTaskManager.swift:41:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
39 | if let result = try? await Self.sharedHighlight.attributedText(codeToProcess, colors: colors) {
40 | await MainActor.run {
41 | completion(result)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[520/548] Compiling SwiftStreamingMarkdown BlockConvertible.swift
[521/548] Compiling SwiftStreamingMarkdown BlockQuote+.swift
[522/548] Compiling SwiftStreamingMarkdown CodeBlock+.swift
[523/548] Compiling SwiftStreamingMarkdown Document+.swift
[524/548] Compiling SwiftStreamingMarkdown Heading+.swift
[525/548] Compiling SwiftStreamingMarkdown OrderedList+.swift
[526/548] Compiling SwiftStreamingMarkdown Paragraph+.swift
[527/548] Compiling SwiftStreamingMarkdown Table+.swift
[528/548] Compiling SwiftStreamingMarkdown ThematicBreak+.swift
[529/548] Compiling SwiftStreamingMarkdown UnorderedList+.swift
[530/548] Compiling SwiftStreamingMarkdown ParagraphAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[531/548] Compiling SwiftStreamingMarkdown ParagraphViewCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[532/548] Compiling SwiftStreamingMarkdown ParagraphUIView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[533/548] Compiling SwiftStreamingMarkdown ParagraphView+iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[534/548] Compiling SwiftStreamingMarkdown TableView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[535/548] Compiling SwiftStreamingMarkdown SelectableTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[536/548] Compiling SwiftStreamingMarkdown TextSelectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[537/548] Compiling SwiftStreamingMarkdown ThematicBreakView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[538/548] Compiling SwiftStreamingMarkdown UnorderedListView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[539/548] Compiling SwiftStreamingMarkdown AppAppearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:15:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | class ParagraphViewCache {
| `- note: class 'ParagraphViewCache' does not conform to the 'Sendable' protocol
9 | @WithLock
10 | private var cachedViews: [MDParagraphView] = []
:
13 | private init() {}
14 |
15 | static let shared: ParagraphViewCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ParagraphViewCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:21:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | static let shared: ParagraphViewCache = .init()
16 |
17 | func createOrReuseView(contents: NSMutableAttributedString, lineSpacing: CGFloat?) -> MDParagraphView {
| `- note: add '@MainActor' to make instance method 'createOrReuseView(contents:lineSpacing:)' part of global actor 'MainActor'
18 | if let availableView = findAvailableCachedView() {
19 | return availableView
20 | }
21 | let newView = MDParagraphView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if $cachedViews.read(closure: { $0.count }) < maxCacheSize {
23 | $cachedViews.mutate { $0.append(newView) }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/AppKit/ParagraphNSView.swift:33:15: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | var onUrlTap: (URL) -> Void = { NSWorkspace.shared.open($0) }
32 |
33 | convenience init() {
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
34 | let textStorage = NSTextStorage()
35 | let layoutManager = NSLayoutManager()
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:14: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/Paragraph/ParagraphViewCache.swift:35:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | $cachedViews.read(closure: { cachedView in
34 | cachedView.first { view in
35 | view.superview == nil && view.window == nil
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
36 | }
37 | })
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:395:5: warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
393 | #if DEBUG
394 |
395 | let tableViewHeadingMock: [NSMutableAttributedString] = [
| |- warning: let 'tableViewHeadingMock' is not concurrency-safe because non-'Sendable' type '[NSMutableAttributedString]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableViewHeadingMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
396 | NSMutableAttributedString(string: "Table Heading"),
397 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:404:5: warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
402 | ]
403 |
404 | let tableviewRowsMock: [[NSMutableAttributedString]] = [
| |- warning: let 'tableviewRowsMock' is not concurrency-safe because non-'Sendable' type '[[NSMutableAttributedString]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'tableviewRowsMock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | [
406 | NSMutableAttributedString(string: "row1-1 cell Dragon"),
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/UI/TableView.swift:180:12: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
178 | scrollWidth = geo.size.width
179 | }
180 | .onChange(of: geo.size.width) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
181 | scrollWidth = newValue
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/AppAppearance.swift:20:14: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @WithLock
20 | static var current: AppAppearance = .dark
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | #if canImport(UIKit)
[540/548] Compiling SwiftStreamingMarkdown NSFont+LineHeight.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[541/548] Compiling SwiftStreamingMarkdown String+.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[542/548] Compiling SwiftStreamingMarkdown String+BundledImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[543/548] Compiling SwiftStreamingMarkdown TaskExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[544/548] Compiling SwiftStreamingMarkdown URL+MixedEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[545/548] Compiling SwiftStreamingMarkdown View+If.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[546/548] Compiling SwiftStreamingMarkdown View+TrackSize.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[547/548] Compiling SwiftStreamingMarkdown WithLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
[548/548] Compiling SwiftStreamingMarkdown resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Utilities/View+TrackSize.swift:21:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
19 | onChange(proxy.size)
20 | }
21 | .onChange(of: proxy.size) { newSize in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
22 | onChange(newSize)
23 | }
Build complete! (67.99s)
Fetching https://github.com/appstefan/highlightswift
[1/481] Fetching highlightswift
Fetched https://github.com/appstefan/highlightswift from cache (1.22s)
Fetching https://github.com/junyan72/iosMath
[1/5529] Fetching iosmath
Fetched https://github.com/junyan72/iosMath from cache (4.69s)
Fetching https://github.com/swiftlang/swift-markdown.git
Fetching https://github.com/markiv/SwiftUI-Shimmer
Fetching https://github.com/ordo-one/equatable
Fetching https://github.com/pointfreeco/swift-snapshot-testing from cache
[1/220] Fetching swiftui-shimmer
[6/801] Fetching swiftui-shimmer, equatable
[802/8475] Fetching swiftui-shimmer, equatable, swift-markdown
Fetched https://github.com/swiftlang/swift-markdown.git from cache (2.61s)
Fetched https://github.com/markiv/SwiftUI-Shimmer from cache (2.61s)
Fetched https://github.com/ordo-one/equatable from cache (2.61s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.64s)
Computing version for https://github.com/markiv/SwiftUI-Shimmer
Computed https://github.com/markiv/SwiftUI-Shimmer at 1.5.1 (5.77s)
Computing version for https://github.com/swiftlang/swift-markdown.git
Computed https://github.com/swiftlang/swift-markdown.git at 0.7.3 (0.68s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18572] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (1.97s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.3 (2.52s)
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetching https://github.com/swiftlang/swift-syntax from cache
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (2.38s)
Fetched https://github.com/swiftlang/swift-syntax from cache (2.48s)
Computing version for https://github.com/ordo-one/equatable
Computed https://github.com/ordo-one/equatable at 1.4.1 (3.10s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.8.0 (0.61s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.2 (0.70s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.0 (0.51s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.99s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.11.0 (3.59s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.2
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.3
Creating working copy for https://github.com/appstefan/highlightswift
Working copy of https://github.com/appstefan/highlightswift resolved at 99c431b38a1444a5fd6a4978307fbbefe3a7af53
Creating working copy for https://github.com/swiftlang/swift-markdown.git
Working copy of https://github.com/swiftlang/swift-markdown.git resolved at 0.7.3
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at 0.8.0
Creating working copy for https://github.com/markiv/SwiftUI-Shimmer
Working copy of https://github.com/markiv/SwiftUI-Shimmer resolved at 1.5.1
Creating working copy for https://github.com/ordo-one/equatable
Working copy of https://github.com/ordo-one/equatable resolved at 1.4.1
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.11.0
Creating working copy for https://github.com/junyan72/iosMath
Working copy of https://github.com/junyan72/iosMath resolved at ba9ab7729b151329c54fd895a7c1859981d9484c
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "equatable",
"requirement" : {
"exact" : [
"1.4.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/equatable"
},
{
"identity" : "swift-snapshot-testing",
"requirement" : {
"exact" : [
"1.19.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-snapshot-testing"
},
{
"identity" : "swift-markdown",
"requirement" : {
"exact" : [
"0.7.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-markdown.git"
},
{
"identity" : "highlightswift",
"requirement" : {
"revision" : [
"99c431b38a1444a5fd6a4978307fbbefe3a7af53"
]
},
"type" : "sourceControl",
"url" : "https://github.com/appstefan/highlightswift"
},
{
"identity" : "iosmath",
"requirement" : {
"revision" : [
"ba9ab7729b151329c54fd895a7c1859981d9484c"
]
},
"type" : "sourceControl",
"url" : "https://github.com/junyan72/iosMath"
},
{
"identity" : "swiftui-shimmer",
"requirement" : {
"exact" : [
"1.5.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/markiv/SwiftUI-Shimmer"
}
],
"manifest_display_name" : "SwiftStreamingMarkdown",
"name" : "SwiftStreamingMarkdown",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "SwiftStreamingMarkdown",
"targets" : [
"SwiftStreamingMarkdown"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftStreamingMarkdownTests",
"module_type" : "SwiftTarget",
"name" : "SwiftStreamingMarkdownTests",
"path" : "Tests/MarkdownTextTests",
"product_dependencies" : [
"SnapshotTesting"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/MarkdownTextTests/Resources/sample-landscape.png",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AttributeTypeSafetyTests.swift",
"BlockQuoteViewSnapshotTests.swift",
"CodeBlockConfigTests.swift",
"ExtractPlainTextTests.swift",
"ImageBlockRenderingTests.swift",
"ImageBlockRewriterTests.swift",
"ImageBlockSnapshotTests.swift",
"ImageConfigTests.swift",
"ImageTapTests.swift",
"LaTexPreProcessorTests.swift",
"LinkRenderingTests.swift",
"MarkdownParserTests.swift",
"MarkdownTextSnapshotTests.swift",
"MarkdownTextTests.swift",
"OrderedListViewTests.swift",
"ParagraphNSViewTests.swift",
"ParagraphViewTests.swift",
"PartialMarkdownRewriterTests.swift",
"SnapshotTestFoundation/CanvasView.swift",
"SnapshotTestFoundation/IOSVariant.swift",
"SnapshotTestFoundation/MacVariant.swift",
"SnapshotTestFoundation/SnapshotTestCase.swift",
"TableViewSnapshotTests.swift",
"TableViewTests.swift",
"TaskListTests.swift",
"TypographyPropagationTests.swift",
"UnorderedListViewTests.swift",
"ViewImageConfig.swift"
],
"target_dependencies" : [
"SwiftStreamingMarkdown"
],
"type" : "test"
},
{
"c99name" : "SwiftStreamingMarkdown",
"module_type" : "SwiftTarget",
"name" : "SwiftStreamingMarkdown",
"path" : "Sources/MarkdownText",
"product_dependencies" : [
"Equatable",
"Markdown",
"HighlightSwift",
"iosMath",
"Shimmer"
],
"product_memberships" : [
"SwiftStreamingMarkdown"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Resources/Assets.xcassets",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Resources/Localizable.xcstrings",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MarkdownText/Resources/Media.xcassets",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Block/BlockConvertible.swift",
"Block/BlockQuote+.swift",
"Block/CodeBlock+.swift",
"Block/Document+.swift",
"Block/Heading+.swift",
"Block/OrderedList+.swift",
"Block/Paragraph+.swift",
"Block/Table+.swift",
"Block/ThematicBreak+.swift",
"Block/UnorderedList+.swift",
"Citation/CitationCoder.swift",
"Citation/InlineAttachmentData.swift",
"Citation/InlineCitationAttachment.swift",
"ContextMenu/TextContextMenu.swift",
"ContextMenu/TextContextMenuGroup.swift",
"ContextMenu/TextContextMenuItem.swift",
"Inline/InlineConvertible.swift",
"Inline/Markdown+InlineConvertible.swift",
"Inline/Markup+.swift",
"MarkdownView.swift",
"Models/CodeBlockConfig.swift",
"Models/ImageConfig+SourceResolution.swift",
"Models/ImageConfig.swift",
"Models/ImageData.swift",
"Models/LatexAttachmentData.swift",
"Models/ListItem+.swift",
"Models/MarkdownImage.swift",
"Models/MarkdownRenderConfig+Builders.swift",
"Models/MarkdownRenderConfig.swift",
"Models/MarkdownRenderable.swift",
"Models/Markup+ID.swift",
"Models/RenderableDocument.swift",
"Models/TextSelectionConfig.swift",
"Parser/LaTexPreProcessor.swift",
"Parser/MarkdownParseOption.swift",
"Parser/MarkdownParseResult.swift",
"Parser/MarkdownParser.swift",
"Parser/MarkdownParserImpl.swift",
"Parser/Rewriters/ImageBlockRewriter.swift",
"Parser/Rewriters/PartialEmphasisRewriter.swift",
"Parser/Rewriters/PartialTableRewriter.swift",
"Parser/Scanners/MarkupPostParsingRewriter.swift",
"Parser/Scanners/MarkupScanner.swift",
"Parser/Scanners/PartialEmphasisScanner.swift",
"Parser/Scanners/PartialTableScanner.swift",
"StreamedMarkdownView.swift",
"Style/Color+Dynamic.swift",
"Style/Colors+Static.swift",
"Style/Colors+Theme.swift",
"Style/TextFonts.swift",
"Style/Typography.swift",
"TextTransition/FadeInTextTransition.swift",
"TextTransition/FadeInTextTransitionViewModifier.swift",
"UI/BlockMathView.swift",
"UI/BlockQuoteView.swift",
"UI/BlockView.swift",
"UI/CodeBlockView.swift",
"UI/DocumentView.swift",
"UI/EdgeBorder.swift",
"UI/HighlightTaskManager.swift",
"UI/Images/BlockImageFailureView.swift",
"UI/Images/BlockImageLoadingView.swift",
"UI/Images/BlockImageView.swift",
"UI/Images/BundledResourceImage.swift",
"UI/Images/ImageViewerView.swift",
"UI/Images/PinchZoomView.swift",
"UI/OrderedListView.swift",
"UI/Paragraph/AppKit/ParagraphNSView.swift",
"UI/Paragraph/AppKit/ParagraphView+macOS.swift",
"UI/Paragraph/LatexViewProvider.swift",
"UI/Paragraph/ParagraphAnimation.swift",
"UI/Paragraph/ParagraphViewCache.swift",
"UI/Paragraph/UIKit/ParagraphUIView.swift",
"UI/Paragraph/UIKit/ParagraphView+iOS.swift",
"UI/TableView.swift",
"UI/TextSelection/SelectableTextView.swift",
"UI/TextSelection/TextSelectionView.swift",
"UI/ThematicBreakView.swift",
"UI/UnorderedListView.swift",
"Utilities/AppAppearance.swift",
"Utilities/Image+MDImage.swift",
"Utilities/MDColor+Hex.swift",
"Utilities/MDColor.swift",
"Utilities/MDEdgeInsets.swift",
"Utilities/MDFont.swift",
"Utilities/MDImage.swift",
"Utilities/MDParagraphView.swift",
"Utilities/MarkdownListener.swift",
"Utilities/NSAttributedString+.swift",
"Utilities/NSFont+LineHeight.swift",
"Utilities/String+.swift",
"Utilities/String+BundledImage.swift",
"Utilities/TaskExtensions.swift",
"Utilities/URL+MixedEncoding.swift",
"Utilities/View+If.swift",
"Utilities/View+TrackSize.swift",
"Utilities/WithLock.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.