Build Information
Successful build of RichTextKit, reference main (fd2d21), with Swift 6.1 for macOS (SPM) on 3 Dec 2025 08:37:50 UTC.
Swift 6 data race errors: 0
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
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[109/158] Compiling RichTextKit PdfPageMargins.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[110/158] Compiling RichTextKit RichTextPdfDataReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[111/158] Compiling RichTextKit RichTextNSSharingMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[112/158] Compiling RichTextKit RichTextShareMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[113/158] Compiling RichTextKit RichTextShareService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[114/158] Compiling RichTextKit StandardRichTextShareService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:41:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | let values = values ?? value.defaultPickerValues ?? []
40 | let binding: Binding<ValueType> = .init {
41 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | paragraph.wrappedValue[keyPath: value]
42 | } set: { newValue in
43 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | }
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| `- warning: call to main actor-isolated initializer 'init(values:valueLabel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:12:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
10 |
11 | /// This internal view is used by the Picker when building a paragraph value picker.
12 | public struct NSMutableParagraphStyleValueLabel<ValueType: Hashable, ValueLabel: View>: View {
| |- note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
13 |
14 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:61:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
59 | ) -> Binding<Int> {
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
62 | set: { binding.wrappedValue = values[$0] }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:62:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
54 | private extension Picker {
55 |
56 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
57 | for values: [ValueType],
58 | binding: Binding<ValueType>
:
60 | .init(
61 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
62 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
35 | self.init(
36 | value: .init {
37 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | },
41 | step: step,
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Stepper+RichTextParagraphValue.swift:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | paragraph.wrappedValue[keyPath: value]
38 | } set: { newValue in
39 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | },
41 | step: step,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:33:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
31 | self.init(
32 | isOn: .init {
33 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | },
37 | label: label
SwiftUICore.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | @preconcurrency public init(get: @escaping @isolated(any) @Sendable () -> Value, set: @escaping @isolated(any) @Sendable (Value) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Toggle+RichTextParagraphValue.swift:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | paragraph.wrappedValue[keyPath: value]
34 | } set: { newValue in
35 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | },
37 | label: label
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:25:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
23 | let indexBinding = Self.indexBinding(for: values, binding: binding)
24 | self.init(selection: indexBinding) {
25 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | } label: {
27 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'values' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:47:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
45 | let indexBinding = Self.indexBinding(for: values, binding: binding)
46 | self.init(selection: indexBinding) {
47 | Content(values: values, valueLabel: valueLabel)
| |- warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'valueLabel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
48 | } label: {
49 | label()
[115/158] Compiling RichTextKit RichTextAttributes+RichTextStyle.swift
[116/158] Compiling RichTextKit RichTextHighlightingStyle.swift
[117/158] Compiling RichTextKit RichTextStyle+Button.swift
[118/158] Compiling RichTextKit RichTextStyle+Toggle.swift
[119/158] Compiling RichTextKit RichTextStyle+ToggleGroup.swift
[120/158] Compiling RichTextKit RichTextStyle+ToggleStack.swift
[121/158] Compiling RichTextKit RichTextStyle.swift
[122/158] Compiling RichTextKit View+RichTextStyle.swift
[123/158] Compiling RichTextKit ForEachPicker.swift
[124/158] Compiling RichTextKit ListPicker.swift
[125/158] Compiling RichTextKit ListPickerItem.swift
[126/158] Compiling RichTextKit ListPickerSection.swift
[127/158] Compiling RichTextKit RichTextLabelValue.swift
[128/158] Compiling RichTextKit ViewRepresentable.swift
[129/158] Compiling RichTextKit NSMutableParagraphStyle+Custom.swift
[130/158] Compiling RichTextKit RichTextViewComponent+Colors.swift
[131/158] Compiling RichTextKit RichTextViewComponent+Font.swift
[132/158] Compiling RichTextKit RichTextViewComponent+Images.swift
[133/158] Compiling RichTextKit RichTextViewComponent+Paragraph.swift
[134/158] Compiling RichTextKit RichTextViewComponent+Pasting.swift
[135/158] Compiling RichTextKit RichTextViewComponent+Ranges.swift
[136/158] Compiling RichTextKit RichTextViewComponent+Styles.swift
[137/158] Compiling RichTextKit RichTextViewComponent+Superscript.swift
[138/158] Compiling RichTextKit RichTextViewComponent.swift
[139/158] Compiling RichTextKit RichTextView_AppKit.swift
[140/158] Compiling RichTextKit RichTextView_UIKit.swift
[141/158] Compiling RichTextKit ColorRepresentable.swift
[142/158] Compiling RichTextKit RichTextColor+Picker.swift
[143/158] Compiling RichTextKit RichTextColor.swift
[144/158] Compiling RichTextKit RichTextCommand+ActionButton.swift
[145/158] Compiling RichTextKit RichTextContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[146/158] Compiling RichTextKit RichTextContextFocusedValueKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[147/158] Compiling RichTextKit RichTextEditor+Config.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[148/158] Compiling RichTextKit RichTextEditor+Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[149/158] Compiling RichTextKit RichTextEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[150/158] Compiling RichTextKit RichTextViewRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[151/158] Compiling RichTextKit RichTextViewer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[152/158] Compiling RichTextKit RichTextCoordinator+Actions.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[153/158] Compiling RichTextKit RichTextCoordinator+Subscriptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[154/158] Compiling RichTextKit RichTextCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[155/158] Compiling RichTextKit RichTextPresenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[156/158] Compiling RichTextKit RichTextReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[157/158] Compiling RichTextKit RichTextWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
[158/158] Compiling RichTextKit resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:94:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
92 | ) -> Binding<ValueType> {
93 | .init {
94 | self.paragraphStyle[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:13: warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
17 | /// You can use ``RichTextContext/FocusedValueKey`` to handle focus
18 | /// for a context in a multi-windowed app.
19 | public class RichTextContext: ObservableObject {
| `- note: class 'RichTextContext' does not conform to the 'Sendable' protocol
20 |
21 | /// Create a new rich text context instance.
:
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'self' with non-sendable type 'RichTextContext' in a '@Sendable' closure
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/_Essential/RichTextContext.swift:96:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
94 | self.paragraphStyle[keyPath: keyPath]
95 | } set: { value in
96 | self.paragraphStyle[keyPath: keyPath] = value
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
97 | }
98 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
Build complete! (12.64s)
Fetching https://github.com/danielsaidi/MockingKit.git
[1/2500] Fetching mockingkit
Fetched https://github.com/danielsaidi/MockingKit.git from cache (1.24s)
Computing version for https://github.com/danielsaidi/MockingKit.git
Computed https://github.com/danielsaidi/MockingKit.git at 1.5.0 (1.72s)
Creating working copy for https://github.com/danielsaidi/MockingKit.git
Working copy of https://github.com/danielsaidi/MockingKit.git resolved at 1.5.0
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "mockingkit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/danielsaidi/MockingKit.git"
}
],
"manifest_display_name" : "RichTextKit",
"name" : "RichTextKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "RichTextKit",
"targets" : [
"RichTextKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RichTextKitTests",
"module_type" : "SwiftTarget",
"name" : "RichTextKitTests",
"path" : "Tests/RichTextKitTests",
"product_dependencies" : [
"MockingKit"
],
"sources" : [
"Attributes/RichTextAttributeReaderWriterTests.swift",
"Colors/RichTextColorTests.swift",
"Data/RichTextDataFormatTests.swift",
"Data/RichTextDataReaderTests.swift",
"Extensions/NSAttributedString+EmptyTests.swift",
"Extensions/String+CharactersTests.swift",
"Extensions/String+ParagraphTests.swift",
"Extensions/String+SubscriptTests.swift",
"Fonts/StandardFontSizeProviderTests.swift",
"RichTextContextTests.swift",
"RichTextEditorTests.swift",
"RichTextViewIntegrationTests+UIKit.swift",
"RichTextViewRepresentable+AttributesTests.swift",
"RichTextViewRepresentable+ColorTests.swift",
"RichTextViewRepresentable+FontSizeTests.swift",
"RichTextViewRepresentable+StylesTests.swift",
"RichTextViewRepresentableTests.swift",
"RichTextView_AppKitTests.swift",
"Styles/RichTextStyleTests.swift",
"Styles/RichTextViewHighlightingStyleTests.swift",
"Utils/RichTextView+Helpers.swift",
"_Foundation/RichTextCoordinator+SubscriptionsTests.swift",
"_Foundation/RichTextCoordinatorIntegrationTests+UIKit.swift",
"_Foundation/RichTextCoordinatorTests.swift",
"_Foundation/RichTextPresenterTests.swift",
"_Foundation/RichTextReaderTests.swift"
],
"target_dependencies" : [
"RichTextKit"
],
"type" : "test"
},
{
"c99name" : "RichTextKit",
"module_type" : "SwiftTarget",
"name" : "RichTextKit",
"path" : "Sources/RichTextKit",
"product_memberships" : [
"RichTextKit"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Resources/da.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "da"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Resources/de.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Resources/nb.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "nb"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Resources/sv.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "sv"
}
}
}
],
"sources" : [
"Actions/RichTextAction+Button.swift",
"Actions/RichTextAction+ButtonGroup.swift",
"Actions/RichTextAction+ButtonStack.swift",
"Actions/RichTextAction+KeyboardShortcutModifier.swift",
"Actions/RichTextAction.swift",
"Actions/RichTextInsertion.swift",
"Attributes/RichTextAttribute.swift",
"Attributes/RichTextAttributeReader.swift",
"Attributes/RichTextAttributeWriter.swift",
"Bridging/RichTextView+Config.swift",
"Bridging/RichTextView+Config_AppKit.swift",
"Bridging/RichTextView+Config_UIKit.swift",
"Bridging/RichTextView+Setup.swift",
"Bridging/RichTextView+Theme.swift",
"Bridging/RichTextViewComponent+Attributes.swift",
"Bridging/RichTextViewComponent+Colors.swift",
"Bridging/RichTextViewComponent+Font.swift",
"Bridging/RichTextViewComponent+Images.swift",
"Bridging/RichTextViewComponent+Paragraph.swift",
"Bridging/RichTextViewComponent+Pasting.swift",
"Bridging/RichTextViewComponent+Ranges.swift",
"Bridging/RichTextViewComponent+Styles.swift",
"Bridging/RichTextViewComponent+Superscript.swift",
"Bridging/RichTextViewComponent.swift",
"Bridging/RichTextView_AppKit.swift",
"Bridging/RichTextView_UIKit.swift",
"Colors/ColorRepresentable.swift",
"Colors/RichTextColor+Picker.swift",
"Colors/RichTextColor.swift",
"Commands/RichTextCommand+ActionButton.swift",
"Commands/RichTextCommand+ActionButtonGroup.swift",
"Commands/RichTextCommand+FormatMenu.swift",
"Commands/RichTextCommand+ShareMenu.swift",
"Commands/RichTextCommand.swift",
"Data/NSAttributedString+Init.swift",
"Data/RichTextDataError.swift",
"Data/RichTextDataFormat+Menu.swift",
"Data/RichTextDataFormat.swift",
"Data/RichTextDataReader.swift",
"Data/UTType+RichText.swift",
"Export/NSAttributedString+Export.swift",
"Export/RichTextExportError.swift",
"Export/RichTextExportMenu.swift",
"Export/RichTextExportService.swift",
"Export/RichTextExportUrlResolver+FileManager.swift",
"Export/RichTextExportUrlResolver.swift",
"Export/StandardRichTextExportService.swift",
"Extensions/Image+Label.swift",
"Extensions/NSAttributedString+Empty.swift",
"Extensions/NSTextAttachment+Image.swift",
"Extensions/String+Characters.swift",
"Extensions/String+Paragraph.swift",
"Extensions/String+Subscript.swift",
"Fonts/FontDescriptorRepresentable.swift",
"Fonts/FontRepresentable.swift",
"Fonts/FontTraitsRepresentable.swift",
"Fonts/RichTextFont+ForEachPicker.swift",
"Fonts/RichTextFont+ListPicker.swift",
"Fonts/RichTextFont+Picker.swift",
"Fonts/RichTextFont+PickerConfig.swift",
"Fonts/RichTextFont+PickerFont.swift",
"Fonts/RichTextFont+PickerItem.swift",
"Fonts/RichTextFont+SizePicker.swift",
"Fonts/RichTextFont+SizePickerConfig.swift",
"Fonts/RichTextFont+SizePickerStack.swift",
"Fonts/RichTextFont.swift",
"Fonts/StandardFontSizeProvider.swift",
"Format/RichTextFormat+Sheet.swift",
"Format/RichTextFormat+Sidebar.swift",
"Format/RichTextFormat+Toolbar.swift",
"Format/RichTextFormat+ToolbarConfig.swift",
"Format/RichTextFormat+ToolbarStyle.swift",
"Format/RichTextFormat.swift",
"Format/RichTextFormatToolbarBase.swift",
"Images/Image+RichText.swift",
"Images/ImageRepresentable.swift",
"Images/RichTextImageAttachment.swift",
"Images/RichTextImageAttachmentManager.swift",
"Images/RichTextImageAttachmentSize.swift",
"Images/RichTextImageConfiguration.swift",
"Images/RichTextImageInsertConfiguration.swift",
"Keyboard/RichTextKeyboardToolbar+Config.swift",
"Keyboard/RichTextKeyboardToolbar+Style.swift",
"Keyboard/RichTextKeyboardToolbar.swift",
"Keyboard/RichTextKeyboardToolbarMenu.swift",
"Localization/Bundle+Locale.swift",
"Localization/RTKL10n.swift",
"Paragraph/NSMutableParagraphStyle+PickerValues.swift",
"Paragraph/NSMutableParagraphStyle+StepperInterval.swift",
"Paragraph/NSMutableParagraphStyleValueLabel.swift",
"Paragraph/NSParagraphStyle+Mutable.swift",
"Paragraph/NSParagraphStyle+Views.swift",
"Paragraph/NSTextAlignment+Views.swift",
"Paragraph/Picker+RichTextParagraphValue.swift",
"Paragraph/Stepper+RichTextParagraphValue.swift",
"Paragraph/Toggle+RichTextParagraphValue.swift",
"Pasteboard/PasteboardImageReader.swift",
"Pdf/PdfDataError.swift",
"Pdf/PdfPageConfiguration.swift",
"Pdf/PdfPageMargins.swift",
"Pdf/RichTextPdfDataReader.swift",
"Sharing/RichTextNSSharingMenu.swift",
"Sharing/RichTextShareMenu.swift",
"Sharing/RichTextShareService.swift",
"Sharing/StandardRichTextShareService.swift",
"Styles/RichTextAttributes+RichTextStyle.swift",
"Styles/RichTextHighlightingStyle.swift",
"Styles/RichTextStyle+Button.swift",
"Styles/RichTextStyle+Toggle.swift",
"Styles/RichTextStyle+ToggleGroup.swift",
"Styles/RichTextStyle+ToggleStack.swift",
"Styles/RichTextStyle.swift",
"Styles/View+RichTextStyle.swift",
"Views/ForEachPicker.swift",
"Views/ListPicker.swift",
"Views/ListPickerItem.swift",
"Views/ListPickerSection.swift",
"Views/RichTextLabelValue.swift",
"Views/ViewRepresentable.swift",
"_Deprecated/NSMutableParagraphStyle+Custom.swift",
"_Deprecated/NSTextAlignment+Deprecated.swift",
"_Deprecated/RichTextAlignment+KeyboardShortcutModifier.swift",
"_Deprecated/RichTextAlignment+Picker.swift",
"_Deprecated/RichTextAlignment.swift",
"_Deprecated/RichTextLine+SpacingPicker.swift",
"_Deprecated/RichTextLine+SpacingPickerConfig.swift",
"_Deprecated/RichTextLine+SpacingPickerStack.swift",
"_Deprecated/RichTextLine.swift",
"_Deprecated/RichTextViewComponent+Alignment.swift",
"_Deprecated/RichTextViewComponent+Indent.swift",
"_Deprecated/RichTextViewComponent+Line.swift",
"_Essential/RichTextContext+Actions.swift",
"_Essential/RichTextContext+Colors.swift",
"_Essential/RichTextContext+Pasting.swift",
"_Essential/RichTextContext+Styles.swift",
"_Essential/RichTextContext.swift",
"_Essential/RichTextContextFocusedValueKey.swift",
"_Essential/RichTextEditor+Config.swift",
"_Essential/RichTextEditor+Style.swift",
"_Essential/RichTextEditor.swift",
"_Essential/RichTextViewRepresentable.swift",
"_Essential/RichTextViewer.swift",
"_Foundation/RichTextCoordinator+Actions.swift",
"_Foundation/RichTextCoordinator+Subscriptions.swift",
"_Foundation/RichTextCoordinator.swift",
"_Foundation/RichTextPresenter.swift",
"_Foundation/RichTextReader.swift",
"_Foundation/RichTextWriter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.