Build Information
Successful build of RichTextKit, reference main (3b5e72
), with Swift 6.1 for macOS (SPM) on 1 Jun 2025 22:57:42 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 InferSendableFromCaptures
Build Log
| `- 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[32/158] Compiling RichTextKit PdfPageConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[33/158] Compiling RichTextKit PdfPageMargins.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[34/158] Compiling RichTextKit RichTextPdfDataReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[35/158] Compiling RichTextKit RichTextNSSharingMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[36/158] Compiling RichTextKit RichTextShareMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[37/158] Compiling RichTextKit RichTextShareService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[38/158] Compiling RichTextKit StandardRichTextShareService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26: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
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/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 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:43:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
41 | let values = values ?? value.defaultPickerValues ?? []
42 | let binding: Binding<ValueType> = .init {
43 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
44 | } set: { newValue in
45 | 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:45:13: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
46 | }
47 | 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:45:45: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
43 | paragraph.wrappedValue[keyPath: value]
44 | } set: { newValue in
45 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
46 | }
47 | 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:49: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
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/NSMutableParagraphStyleValueLabel.swift:13:15: note: calls to initializer 'init(values:valueLabel:)' from outside of its actor context are implicitly asynchronous
11 | /// This internal view is used by the Picker when building a
12 | /// picker for a certain rich text paragraph value.
13 | 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'
14 |
15 | let values: [ValueType]
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:20: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:63:42: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
61 | ) -> Binding<Int> {
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
64 | set: { binding.wrappedValue = values[$0] }
65 | )
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:20: warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'binding' with non-sendable type 'Binding<ValueType>' in a '@Sendable' closure
65 | )
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:64:43: warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
56 | private extension Picker {
57 |
58 | static func indexBinding<ValueType: Hashable>(
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
59 | for values: [ValueType],
60 | binding: Binding<ValueType>
:
62 | .init(
63 | get: { values.firstIndex(of: binding.wrappedValue) ?? 0 },
64 | set: { binding.wrappedValue = values[$0] }
| `- warning: capture of 'values' with non-sendable type '[ValueType]' in a '@Sendable' closure
65 | )
66 | }
/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 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:39:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
37 | self.init(
38 | value: .init {
39 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
40 | } set: { newValue in
41 | 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:41:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
42 | },
43 | 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:41:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
39 | paragraph.wrappedValue[keyPath: value]
40 | } set: { newValue in
41 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, ValueType>' in a '@Sendable' closure
42 | },
43 | 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:35:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:35:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
33 | self.init(
34 | isOn: .init {
35 | paragraph.wrappedValue[keyPath: value]
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
36 | } set: { newValue in
37 | 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:37:17: warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'paragraph' with non-sendable type 'Binding<NSMutableParagraphStyle>' in a '@Sendable' closure
38 | },
39 | 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:37:49: warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
35 | paragraph.wrappedValue[keyPath: value]
36 | } set: { newValue in
37 | paragraph.wrappedValue[keyPath: value] = newValue
| `- warning: capture of 'value' with non-sendable type 'WritableKeyPath<NSMutableParagraphStyle, Bool>' in a '@Sendable' closure
38 | },
39 | 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:26:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:26:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
24 | let indexBinding = Self.indexBinding(for: values, binding: binding)
25 | self.init(selection: indexBinding) {
26 | 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
27 | } label: {
28 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'values' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Paragraph/Picker+RichTextParagraphValue.swift:49:13: warning: sending 'valueLabel' risks causing data races; this is an error in the Swift 6 language mode
47 | let indexBinding = Self.indexBinding(for: values, binding: binding)
48 | self.init(selection: indexBinding) {
49 | 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
50 | } label: {
51 | label()
[39/158] Compiling RichTextKit ImageRepresentable.swift
[40/158] Compiling RichTextKit RichTextImageAttachment.swift
[41/158] Compiling RichTextKit RichTextImageAttachmentManager.swift
[42/158] Compiling RichTextKit RichTextImageAttachmentSize.swift
[43/158] Compiling RichTextKit RichTextImageConfiguration.swift
[44/158] Compiling RichTextKit RichTextImageInsertConfiguration.swift
[45/158] Compiling RichTextKit RichTextKeyboardToolbar+Config.swift
[46/158] Compiling RichTextKit RichTextKeyboardToolbar+Style.swift
[47/158] Compiling RichTextKit RichTextKeyboardToolbar.swift
[48/158] Compiling RichTextKit RichTextKeyboardToolbarMenu.swift
[49/158] Compiling RichTextKit Bundle+Locale.swift
[50/158] Compiling RichTextKit RTKL10n.swift
[51/158] Compiling RichTextKit NSMutableParagraphStyle+PickerValues.swift
[52/158] Compiling RichTextKit NSMutableParagraphStyle+StepperInterval.swift
[53/158] Compiling RichTextKit NSMutableParagraphStyleValueLabel.swift
[54/158] Compiling RichTextKit NSTextAlignment+Deprecated.swift
[55/158] Compiling RichTextKit RichTextAlignment+KeyboardShortcutModifier.swift
[56/158] Compiling RichTextKit RichTextAlignment+Picker.swift
[57/158] Compiling RichTextKit RichTextAlignment.swift
[58/158] Compiling RichTextKit RichTextLine+SpacingPicker.swift
[59/158] Compiling RichTextKit RichTextLine+SpacingPickerConfig.swift
[60/158] Compiling RichTextKit RichTextLine+SpacingPickerStack.swift
[61/158] Compiling RichTextKit RichTextLine.swift
[62/158] Compiling RichTextKit RichTextViewComponent+Alignment.swift
[63/158] Compiling RichTextKit RichTextViewComponent+Indent.swift
[64/158] Compiling RichTextKit RichTextViewComponent+Line.swift
[65/158] Compiling RichTextKit RichTextContext+Actions.swift
[66/158] Compiling RichTextKit RichTextContext+Colors.swift
[67/158] Compiling RichTextKit RichTextContext+Pasting.swift
[68/158] Compiling RichTextKit RichTextContext+Styles.swift
[69/158] Compiling RichTextKit RichTextCommand+ActionButtonGroup.swift
[70/158] Compiling RichTextKit RichTextCommand+FormatMenu.swift
[71/158] Compiling RichTextKit RichTextCommand+ShareMenu.swift
[72/158] Compiling RichTextKit RichTextCommand.swift
[73/158] Compiling RichTextKit NSAttributedString+Init.swift
[74/158] Compiling RichTextKit RichTextDataError.swift
[75/158] Compiling RichTextKit RichTextDataFormat+Menu.swift
[76/158] Compiling RichTextKit RichTextDataFormat.swift
[77/158] Compiling RichTextKit RichTextDataReader.swift
[78/158] Compiling RichTextKit UTType+RichText.swift
[79/158] Compiling RichTextKit NSAttributedString+Export.swift
[80/158] Compiling RichTextKit RichTextExportError.swift
[81/158] Compiling RichTextKit RichTextExportMenu.swift
[82/158] Compiling RichTextKit RichTextExportService.swift
[83/158] Compiling RichTextKit RichTextExportUrlResolver+FileManager.swift
[84/158] Compiling RichTextKit RichTextFont+PickerFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[85/158] Compiling RichTextKit RichTextFont+PickerItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[86/158] Compiling RichTextKit RichTextFont+SizePicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[87/158] Compiling RichTextKit RichTextFont+SizePickerConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[88/158] Compiling RichTextKit RichTextFont+SizePickerStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[89/158] Compiling RichTextKit RichTextFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[90/158] Compiling RichTextKit StandardFontSizeProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[91/158] Compiling RichTextKit RichTextFormat+Sheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[92/158] Compiling RichTextKit RichTextFormat+Sidebar.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[93/158] Compiling RichTextKit RichTextFormat+Toolbar.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[94/158] Compiling RichTextKit RichTextFormat+ToolbarConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[95/158] Compiling RichTextKit RichTextFormat+ToolbarStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[96/158] Compiling RichTextKit RichTextFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[97/158] Compiling RichTextKit RichTextFormatToolbarBase.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[98/158] Compiling RichTextKit Image+RichText.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:13: warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'RichTextLine' is deprecated: Use native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichTextKit/Format/RichTextFormatToolbarBase.swift:150:26: warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
148 | ) -> some View {
149 | if config.lineSpacingPicker {
150 | RichTextLine.SpacingPickerStack(context: context)
| `- warning: 'SpacingPickerStack' is deprecated: Use SwiftUI Picker with native NSParagraphStyle directly instead.
151 | .buttonStyle(.bordered)
152 | }
[99/158] Compiling RichTextKit RichTextAttributes+RichTextStyle.swift
[100/158] Compiling RichTextKit RichTextHighlightingStyle.swift
[101/158] Compiling RichTextKit RichTextStyle+Button.swift
[102/158] Compiling RichTextKit RichTextStyle+Toggle.swift
[103/158] Compiling RichTextKit RichTextStyle+ToggleGroup.swift
[104/158] Compiling RichTextKit RichTextStyle+ToggleStack.swift
[105/158] Compiling RichTextKit RichTextStyle.swift
[106/158] Compiling RichTextKit View+RichTextStyle.swift
[107/158] Compiling RichTextKit ForEachPicker.swift
[108/158] Compiling RichTextKit ListPicker.swift
[109/158] Compiling RichTextKit ListPickerItem.swift
[110/158] Compiling RichTextKit ListPickerSection.swift
[111/158] Compiling RichTextKit RichTextLabelValue.swift
[112/158] Compiling RichTextKit ViewRepresentable.swift
[113/158] Compiling RichTextKit NSMutableParagraphStyle+Custom.swift
[114/158] Compiling RichTextKit RichTextExportUrlResolver.swift
[115/158] Compiling RichTextKit StandardRichTextExportService.swift
[116/158] Compiling RichTextKit Image+Label.swift
[117/158] Compiling RichTextKit NSAttributedString+Empty.swift
[118/158] Compiling RichTextKit NSTextAttachment+Image.swift
[119/158] Compiling RichTextKit String+Characters.swift
[120/158] Compiling RichTextKit String+Paragraph.swift
[121/158] Compiling RichTextKit String+Subscript.swift
[122/158] Compiling RichTextKit FontDescriptorRepresentable.swift
[123/158] Compiling RichTextKit FontRepresentable.swift
[124/158] Compiling RichTextKit FontTraitsRepresentable.swift
[125/158] Compiling RichTextKit RichTextFont+ForEachPicker.swift
[126/158] Compiling RichTextKit RichTextFont+ListPicker.swift
[127/158] Compiling RichTextKit RichTextFont+Picker.swift
[128/158] Compiling RichTextKit RichTextFont+PickerConfig.swift
[129/158] Compiling RichTextKit RichTextViewComponent+Colors.swift
[130/158] Compiling RichTextKit RichTextViewComponent+Font.swift
[131/158] Compiling RichTextKit RichTextViewComponent+Images.swift
[132/158] Compiling RichTextKit RichTextViewComponent+Paragraph.swift
[133/158] Compiling RichTextKit RichTextViewComponent+Pasting.swift
[134/158] Compiling RichTextKit RichTextViewComponent+Ranges.swift
[135/158] Compiling RichTextKit RichTextViewComponent+Styles.swift
[136/158] Compiling RichTextKit RichTextViewComponent+Superscript.swift
[137/158] Compiling RichTextKit RichTextViewComponent.swift
[138/158] Compiling RichTextKit RichTextView_AppKit.swift
[139/158] Compiling RichTextKit RichTextView_UIKit.swift
[140/158] Compiling RichTextKit ColorRepresentable.swift
[141/158] Compiling RichTextKit RichTextColor+Picker.swift
[142/158] Compiling RichTextKit RichTextColor.swift
[143/158] Compiling RichTextKit RichTextCommand+ActionButton.swift
[144/158] Compiling RichTextKit RichTextAction+Button.swift
[145/158] Compiling RichTextKit RichTextAction+ButtonGroup.swift
[146/158] Compiling RichTextKit RichTextAction+ButtonStack.swift
[147/158] Compiling RichTextKit RichTextAction+KeyboardShortcutModifier.swift
[148/158] Compiling RichTextKit RichTextAction.swift
[149/158] Compiling RichTextKit RichTextInsertion.swift
[150/158] Compiling RichTextKit RichTextAttribute.swift
[151/158] Compiling RichTextKit RichTextAttributeReader.swift
[152/158] Compiling RichTextKit RichTextAttributeWriter.swift
[153/158] Compiling RichTextKit RichTextView+Config.swift
[154/158] Compiling RichTextKit RichTextView+Config_AppKit.swift
[155/158] Compiling RichTextKit RichTextView+Config_UIKit.swift
[156/158] Compiling RichTextKit RichTextView+Setup.swift
[157/158] Compiling RichTextKit RichTextView+Theme.swift
[158/158] Compiling RichTextKit RichTextViewComponent+Attributes.swift
Build complete! (9.90s)
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.