Build Information
Successful build of RichTextKit, reference main (3081c7
), with Swift 6.1 for macOS (SPM) on 24 Jun 2025 09:41:30 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
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()
[122/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()
[123/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()
[124/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()
[125/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()
[126/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()
[127/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()
[128/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()
[129/158] Compiling RichTextKit RichTextExportUrlResolver.swift
[130/158] Compiling RichTextKit StandardRichTextExportService.swift
[131/158] Compiling RichTextKit Image+Label.swift
[132/158] Compiling RichTextKit NSAttributedString+Empty.swift
[133/158] Compiling RichTextKit NSTextAttachment+Image.swift
[134/158] Compiling RichTextKit String+Characters.swift
[135/158] Compiling RichTextKit String+Paragraph.swift
[136/158] Compiling RichTextKit String+Subscript.swift
[137/158] Compiling RichTextKit FontDescriptorRepresentable.swift
[138/158] Compiling RichTextKit FontRepresentable.swift
[139/158] Compiling RichTextKit FontTraitsRepresentable.swift
[140/158] Compiling RichTextKit RichTextFont+ForEachPicker.swift
[141/158] Compiling RichTextKit RichTextFont+ListPicker.swift
[142/158] Compiling RichTextKit RichTextFont+Picker.swift
[143/158] Compiling RichTextKit RichTextFont+PickerConfig.swift
[144/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 | }
[145/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 | }
[146/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 | }
[147/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 | }
[148/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 | }
[149/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 | }
[150/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 | }
[151/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 | }
[152/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 | }
[153/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 | }
[154/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 | }
[155/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 | }
[156/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 | }
[157/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 | }
[158/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 | }
Build complete! (9.85s)
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.