Build Information
Successful build of KitoFields, reference main (50fce5), with Swift 6.1 for macOS (SPM) on 29 Sep 2026 15:59:51 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
| |- note: calls to static method 'parse(_:format:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
41 | let f = DateFormatter()
42 | f.dateFormat = format
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:25:92: warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | static func cardExpiry(message: String = KitoLocalization.string("card.expiry.invalid", "Enter a valid expiry date"), expiredMessage: String = KitoLocalization.string("card.expired", "This card has expired")) -> [KitoRule] {
24 | [
25 | KitoRule(id: "inputkit.expiry.format", message: message) { KitoCardExpiryField.components($0) != nil },
| `- warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:167:24: note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
165 |
166 | /// "MM/YY" → (month, fourDigitYear) when well-formed.
167 | public static func components(_ text: String) -> (month: Int, year: Int)? {
| |- note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
168 | let d = text.asciiDigits
169 | guard d.count == 4, let m = Int(d.prefix(2)), let y = Int(d.suffix(2)), (1...12).contains(m) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:27:63: warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | KitoRule(id: "inputkit.expiry.format", message: message) { KitoCardExpiryField.components($0) != nil },
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
| `- warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | return !KitoCardExpiryField.isExpired(month: month, year: year)
29 | },
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:167:24: note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
165 |
166 | /// "MM/YY" → (month, fourDigitYear) when well-formed.
167 | public static func components(_ text: String) -> (month: Int, year: Int)? {
| |- note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
168 | let d = text.asciiDigits
169 | guard d.count == 4, let m = Int(d.prefix(2)), let y = Int(d.suffix(2)), (1...12).contains(m) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:28:45: warning: call to main actor-isolated static method 'isExpired(month:year:now:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
28 | return !KitoCardExpiryField.isExpired(month: month, year: year)
| `- warning: call to main actor-isolated static method 'isExpired(month:year:now:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | },
30 | ]
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:173:24: note: calls to static method 'isExpired(month:year:now:)' from outside of its actor context are implicitly asynchronous
171 | }
172 |
173 | public static func isExpired(month: Int, year: Int, now: Date = Date()) -> Bool {
| |- note: calls to static method 'isExpired(month:year:now:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
174 | let cal = Calendar(identifier: .gregorian)
175 | let comps = cal.dateComponents([.year, .month], from: now)
[12/48] Compiling KitoFields resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:19:83: warning: call to main actor-isolated static method 'parse(_:format:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | /// A real calendar date in the given format, e.g. "dd/MM/yyyy".
18 | static func date(format: String, message: String = KitoLocalization.string("date.invalid", "Enter a valid date")) -> KitoRule {
19 | KitoRule(id: "inputkit.date.\(format)", message: message) { KitoDateField.parse($0, format: format) != nil }
| `- warning: call to main actor-isolated static method 'parse(_:format:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoDateField.swift:40:24: note: calls to static method 'parse(_:format:)' from outside of its actor context are implicitly asynchronous
38 | private var mask: String { format.map { $0.isLetter ? "#" : $0 }.reduce(into: "") { $0.append($1) } }
39 |
40 | public static func parse(_ text: String, format: String) -> Date? {
| |- note: calls to static method 'parse(_:format:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
41 | let f = DateFormatter()
42 | f.dateFormat = format
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:25:92: warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | static func cardExpiry(message: String = KitoLocalization.string("card.expiry.invalid", "Enter a valid expiry date"), expiredMessage: String = KitoLocalization.string("card.expired", "This card has expired")) -> [KitoRule] {
24 | [
25 | KitoRule(id: "inputkit.expiry.format", message: message) { KitoCardExpiryField.components($0) != nil },
| `- warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:167:24: note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
165 |
166 | /// "MM/YY" → (month, fourDigitYear) when well-formed.
167 | public static func components(_ text: String) -> (month: Int, year: Int)? {
| |- note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
168 | let d = text.asciiDigits
169 | guard d.count == 4, let m = Int(d.prefix(2)), let y = Int(d.suffix(2)), (1...12).contains(m) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:27:63: warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | KitoRule(id: "inputkit.expiry.format", message: message) { KitoCardExpiryField.components($0) != nil },
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
| `- warning: call to main actor-isolated static method 'components' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | return !KitoCardExpiryField.isExpired(month: month, year: year)
29 | },
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:167:24: note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
165 |
166 | /// "MM/YY" → (month, fourDigitYear) when well-formed.
167 | public static func components(_ text: String) -> (month: Int, year: Int)? {
| |- note: calls to static method 'components' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
168 | let d = text.asciiDigits
169 | guard d.count == 4, let m = Int(d.prefix(2)), let y = Int(d.suffix(2)), (1...12).contains(m) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Validation/KitoRule+Formats.swift:28:45: warning: call to main actor-isolated static method 'isExpired(month:year:now:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | KitoRule(id: "inputkit.expiry.future", message: expiredMessage) { value in
27 | guard let (month, year) = KitoCardExpiryField.components(value) else { return true }
28 | return !KitoCardExpiryField.isExpired(month: month, year: year)
| `- warning: call to main actor-isolated static method 'isExpired(month:year:now:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | },
30 | ]
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoCardFields.swift:173:24: note: calls to static method 'isExpired(month:year:now:)' from outside of its actor context are implicitly asynchronous
171 | }
172 |
173 | public static func isExpired(month: Int, year: Int, now: Date = Date()) -> Bool {
| |- note: calls to static method 'isExpired(month:year:now:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
174 | let cal = Calendar(identifier: .gregorian)
175 | let comps = cal.dateComponents([.year, .month], from: now)
[13/48] Compiling KitoFields KitoPasswordField.swift
[14/48] Compiling KitoFields KitoPresetFields.swift
[15/48] Compiling KitoFields KitoResendCodeButton.swift
[16/48] Compiling KitoFields KitoSelectField.swift
[17/48] Compiling KitoFields KitoFlag.swift
[18/48] Compiling KitoFields KitoNativeTextField.swift
[19/48] Compiling KitoFields KitoPhoneField.swift
[20/48] Compiling KitoFields KitoPhoneFormatter.swift
[21/48] Compiling KitoFields KitoValidationState.swift
[22/48] Compiling KitoFields KitoCardFields.swift
[23/48] Compiling KitoFields KitoCodeField.swift
[24/48] Compiling KitoFields KitoCodeFieldStyle.swift
[25/48] Compiling KitoFields KitoCountryField.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoNumberField.swift:247:17: warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
245 | // Both present: the last one is the decimal point, everything before it groups.
246 | let lastIndex = present.compactMap { working.lastIndex(of: $0) }.max()!
247 | let decimalRole = working[lastIndex]
| `- warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
248 | working = String(working.enumerated().map { offset, ch -> String in
249 | guard candidates.contains(ch) else { return String(ch) }
[26/48] Compiling KitoFields KitoDateField.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoNumberField.swift:247:17: warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
245 | // Both present: the last one is the decimal point, everything before it groups.
246 | let lastIndex = present.compactMap { working.lastIndex(of: $0) }.max()!
247 | let decimalRole = working[lastIndex]
| `- warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
248 | working = String(working.enumerated().map { offset, ch -> String in
249 | guard candidates.contains(ch) else { return String(ch) }
[27/48] Compiling KitoFields KitoEmailField.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoNumberField.swift:247:17: warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
245 | // Both present: the last one is the decimal point, everything before it groups.
246 | let lastIndex = present.compactMap { working.lastIndex(of: $0) }.max()!
247 | let decimalRole = working[lastIndex]
| `- warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
248 | working = String(working.enumerated().map { offset, ch -> String in
249 | guard candidates.contains(ch) else { return String(ch) }
[28/48] Compiling KitoFields KitoNumberField.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Fields/KitoNumberField.swift:247:17: warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
245 | // Both present: the last one is the decimal point, everything before it groups.
246 | let lastIndex = present.compactMap { working.lastIndex(of: $0) }.max()!
247 | let decimalRole = working[lastIndex]
| `- warning: initialization of immutable value 'decimalRole' was never used; consider replacing with assignment to '_' or removing it
248 | working = String(working.enumerated().map { offset, ch -> String in
249 | guard candidates.contains(ch) else { return String(ch) }
[29/48] Compiling KitoFields KitoAccessory.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| `- warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | }
:
289 |
290 | /// Symbol that swaps, bounces, wiggles or pulses with the field state.
291 | public struct KitoAnimatedIcon: View {
| |- note: calls to initializer 'init(idle:focused:error:motion:color:context:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
292 | let idle: String
293 | let focused: String
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:146:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | .contentShape(Rectangle())
145 | }
146 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | .accessibilityLabel(accessibilityLabel)
148 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:182:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | .contentShape(Rectangle())
181 | }
182 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 | )
184 | }
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:230:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
228 | .contentShape(Rectangle())
229 | }
230 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
231 | .accessibilityAddTraits(.isButton)
232 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:130:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | private struct BubbleHeightKey: PreferenceKey {
130 | static var defaultValue: CGFloat = 0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = max(value, nextValue()) }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:135:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 |
134 | private struct RowFrameKey: PreferenceKey {
135 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) { value = nextValue() }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldCore.swift:119:27: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | /// Small reusable trailing controls.
109 | enum KitoFieldControls {
110 | static func clearButton(theme: KitoFieldTheme, action: @escaping () -> Void) -> AnyView {
| `- note: add '@MainActor' to make static method 'clearButton(theme:action:)' part of global actor 'MainActor'
111 | AnyView(
112 | Button(action: action) {
:
117 | .contentShape(Rectangle())
118 | }
119 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
120 | .accessibilityLabel(KitoLocalization.string("field.clear", "Clear text"))
121 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| |- warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ctx' to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' risks causing data races between main actor-isolated and task-isolated uses
110 | }
111 | }
[30/48] Compiling KitoFields KitoErrorPresentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| `- warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | }
:
289 |
290 | /// Symbol that swaps, bounces, wiggles or pulses with the field state.
291 | public struct KitoAnimatedIcon: View {
| |- note: calls to initializer 'init(idle:focused:error:motion:color:context:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
292 | let idle: String
293 | let focused: String
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:146:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | .contentShape(Rectangle())
145 | }
146 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | .accessibilityLabel(accessibilityLabel)
148 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:182:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | .contentShape(Rectangle())
181 | }
182 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 | )
184 | }
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:230:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
228 | .contentShape(Rectangle())
229 | }
230 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
231 | .accessibilityAddTraits(.isButton)
232 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:130:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | private struct BubbleHeightKey: PreferenceKey {
130 | static var defaultValue: CGFloat = 0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = max(value, nextValue()) }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:135:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 |
134 | private struct RowFrameKey: PreferenceKey {
135 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) { value = nextValue() }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldCore.swift:119:27: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | /// Small reusable trailing controls.
109 | enum KitoFieldControls {
110 | static func clearButton(theme: KitoFieldTheme, action: @escaping () -> Void) -> AnyView {
| `- note: add '@MainActor' to make static method 'clearButton(theme:action:)' part of global actor 'MainActor'
111 | AnyView(
112 | Button(action: action) {
:
117 | .contentShape(Rectangle())
118 | }
119 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
120 | .accessibilityLabel(KitoLocalization.string("field.clear", "Clear text"))
121 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| |- warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ctx' to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' risks causing data races between main actor-isolated and task-isolated uses
110 | }
111 | }
[31/48] Compiling KitoFields KitoFieldCore.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| `- warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | }
:
289 |
290 | /// Symbol that swaps, bounces, wiggles or pulses with the field state.
291 | public struct KitoAnimatedIcon: View {
| |- note: calls to initializer 'init(idle:focused:error:motion:color:context:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
292 | let idle: String
293 | let focused: String
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:146:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | .contentShape(Rectangle())
145 | }
146 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | .accessibilityLabel(accessibilityLabel)
148 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:182:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | .contentShape(Rectangle())
181 | }
182 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 | )
184 | }
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:230:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
228 | .contentShape(Rectangle())
229 | }
230 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
231 | .accessibilityAddTraits(.isButton)
232 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:130:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | private struct BubbleHeightKey: PreferenceKey {
130 | static var defaultValue: CGFloat = 0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = max(value, nextValue()) }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:135:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 |
134 | private struct RowFrameKey: PreferenceKey {
135 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) { value = nextValue() }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldCore.swift:119:27: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | /// Small reusable trailing controls.
109 | enum KitoFieldControls {
110 | static func clearButton(theme: KitoFieldTheme, action: @escaping () -> Void) -> AnyView {
| `- note: add '@MainActor' to make static method 'clearButton(theme:action:)' part of global actor 'MainActor'
111 | AnyView(
112 | Button(action: action) {
:
117 | .contentShape(Rectangle())
118 | }
119 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
120 | .accessibilityLabel(KitoLocalization.string("field.clear", "Clear text"))
121 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| |- warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ctx' to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' risks causing data races between main actor-isolated and task-isolated uses
110 | }
111 | }
[32/48] Compiling KitoFields KitoFieldMotion.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| `- warning: call to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | }
:
289 |
290 | /// Symbol that swaps, bounces, wiggles or pulses with the field state.
291 | public struct KitoAnimatedIcon: View {
| |- note: calls to initializer 'init(idle:focused:error:motion:color:context:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
292 | let idle: String
293 | let focused: String
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:146:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | .contentShape(Rectangle())
145 | }
146 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | .accessibilityLabel(accessibilityLabel)
148 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:182:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | .contentShape(Rectangle())
181 | }
182 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 | )
184 | }
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:230:31: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
228 | .contentShape(Rectangle())
229 | }
230 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
231 | .accessibilityAddTraits(.isButton)
232 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:130:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | private struct BubbleHeightKey: PreferenceKey {
130 | static var defaultValue: CGFloat = 0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = max(value, nextValue()) }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoErrorPresentation.swift:135:20: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 |
134 | private struct RowFrameKey: PreferenceKey {
135 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) { value = nextValue() }
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldCore.swift:119:27: warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | /// Small reusable trailing controls.
109 | enum KitoFieldControls {
110 | static func clearButton(theme: KitoFieldTheme, action: @escaping () -> Void) -> AnyView {
| `- note: add '@MainActor' to make static method 'clearButton(theme:action:)' part of global actor 'MainActor'
111 | AnyView(
112 | Button(action: action) {
:
117 | .contentShape(Rectangle())
118 | }
119 | .buttonStyle(.plain)
| `- warning: main actor-isolated static property 'plain' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
120 | .accessibilityLabel(KitoLocalization.string("field.clear", "Clear text"))
121 | )
SwiftUI.PrimitiveButtonStyle.plain:2:46: note: static property declared here
1 | protocol PrimitiveButtonStyle {
2 | @MainActor @preconcurrency public static var plain: PlainButtonStyle { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoAccessory.swift:109:21: warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
107 | public static func animatedSymbol(_ idle: String, focused: String? = nil, error: String? = nil, motion: KitoIconMotion = .bounce, color: Color? = nil) -> KitoAccessory {
108 | KitoAccessory { ctx in
109 | AnyView(KitoAnimatedIcon(idle: idle, focused: focused ?? idle, error: error, motion: motion, color: color, context: ctx))
| |- warning: sending 'ctx' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ctx' to main actor-isolated initializer 'init(idle:focused:error:motion:color:context:)' risks causing data races between main actor-isolated and task-isolated uses
110 | }
111 | }
[33/48] Compiling KitoFields KitoFieldTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldTheme.swift:142:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 | /// both: `KitoFieldTheme.default.shape = .capsule` (after setting `.default`), or start a
141 | /// per-screen override from `KitoFieldTheme.default` rather than `.capsule` directly.
142 | public static var `default` = KitoFieldTheme()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | /// Builds a theme where every text role — field text, labels, helper and error text — uses
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoLocalization.swift:23:23: warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public enum KitoLocalization {
22 | /// Optional hook consulted before the bundled `Localizable.strings`.
23 | public static var provider: ((_ key: String, _ fallback: String) -> String?)?
| |- warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'provider' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'provider' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The bundle holding KitoFields' resources (SwiftPM `Bundle.module` or the CocoaPods resource bundle).
[34/48] Compiling KitoFields KitoFontFamily.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldTheme.swift:142:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 | /// both: `KitoFieldTheme.default.shape = .capsule` (after setting `.default`), or start a
141 | /// per-screen override from `KitoFieldTheme.default` rather than `.capsule` directly.
142 | public static var `default` = KitoFieldTheme()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | /// Builds a theme where every text role — field text, labels, helper and error text — uses
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoLocalization.swift:23:23: warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public enum KitoLocalization {
22 | /// Optional hook consulted before the bundled `Localizable.strings`.
23 | public static var provider: ((_ key: String, _ fallback: String) -> String?)?
| |- warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'provider' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'provider' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The bundle holding KitoFields' resources (SwiftPM `Bundle.module` or the CocoaPods resource bundle).
[35/48] Compiling KitoFields KitoForm.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldTheme.swift:142:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 | /// both: `KitoFieldTheme.default.shape = .capsule` (after setting `.default`), or start a
141 | /// per-screen override from `KitoFieldTheme.default` rather than `.capsule` directly.
142 | public static var `default` = KitoFieldTheme()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | /// Builds a theme where every text role — field text, labels, helper and error text — uses
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoLocalization.swift:23:23: warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public enum KitoLocalization {
22 | /// Optional hook consulted before the bundled `Localizable.strings`.
23 | public static var provider: ((_ key: String, _ fallback: String) -> String?)?
| |- warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'provider' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'provider' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The bundle holding KitoFields' resources (SwiftPM `Bundle.module` or the CocoaPods resource bundle).
[36/48] Compiling KitoFields KitoLocalization.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldTheme.swift:142:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 | /// both: `KitoFieldTheme.default.shape = .capsule` (after setting `.default`), or start a
141 | /// per-screen override from `KitoFieldTheme.default` rather than `.capsule` directly.
142 | public static var `default` = KitoFieldTheme()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | /// Builds a theme where every text role — field text, labels, helper and error text — uses
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoLocalization.swift:23:23: warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public enum KitoLocalization {
22 | /// Optional hook consulted before the bundled `Localizable.strings`.
23 | public static var provider: ((_ key: String, _ fallback: String) -> String?)?
| |- warning: static property 'provider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'provider' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'provider' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The bundle holding KitoFields' resources (SwiftPM `Bundle.module` or the CocoaPods resource bundle).
[37/48] Compiling KitoFields KitoFieldOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyle.swift:136:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
119 |
120 | /// Type-erased style stored in the environment.
121 | public struct AnyKitoFieldStyle: KitoFieldStyle {
| `- note: consider making struct 'AnyKitoFieldStyle' conform to the 'Sendable' protocol
122 | private let make: (KitoFieldStyleConfiguration) -> AnyView
123 |
:
134 |
135 | private struct KitoFieldStyleKey: EnvironmentKey {
136 | static let defaultValue = AnyKitoFieldStyle(KitoOutlinedFieldStyle())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
211 | public struct KitoOutlinedFieldStyle: KitoFieldStyle {
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
214 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
221 | public struct KitoFilledFieldStyle: KitoFieldStyle {
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
224 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
236 | public struct KitoUnderlinedFieldStyle: KitoFieldStyle {
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
239 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
246 | public struct KitoPlainFieldStyle: KitoFieldStyle {
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
249 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
257 | public struct KitoFloatingLabelFieldStyle: KitoFieldStyle {
258 | public init() {}
259 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | public struct KitoFieldPlaceholder: View {
81 | let configuration: KitoFieldStyleConfiguration
82 | public init(_ configuration: KitoFieldStyleConfiguration) { self.configuration = configuration }
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
83 | public var body: some View {
84 | if configuration.isEmpty, let text = configuration.placeholder {
:
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | c.input
276 | if let overlay = c.overlayCenter {
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> KitoFieldRow' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'some View' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing races in between task-isolated and main actor-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
275 | c.input
276 | if let overlay = c.overlayCenter {
[38/48] Compiling KitoFields KitoFieldShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyle.swift:136:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
119 |
120 | /// Type-erased style stored in the environment.
121 | public struct AnyKitoFieldStyle: KitoFieldStyle {
| `- note: consider making struct 'AnyKitoFieldStyle' conform to the 'Sendable' protocol
122 | private let make: (KitoFieldStyleConfiguration) -> AnyView
123 |
:
134 |
135 | private struct KitoFieldStyleKey: EnvironmentKey {
136 | static let defaultValue = AnyKitoFieldStyle(KitoOutlinedFieldStyle())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
211 | public struct KitoOutlinedFieldStyle: KitoFieldStyle {
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
214 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
221 | public struct KitoFilledFieldStyle: KitoFieldStyle {
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
224 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
236 | public struct KitoUnderlinedFieldStyle: KitoFieldStyle {
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
239 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
246 | public struct KitoPlainFieldStyle: KitoFieldStyle {
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
249 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
257 | public struct KitoFloatingLabelFieldStyle: KitoFieldStyle {
258 | public init() {}
259 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | public struct KitoFieldPlaceholder: View {
81 | let configuration: KitoFieldStyleConfiguration
82 | public init(_ configuration: KitoFieldStyleConfiguration) { self.configuration = configuration }
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
83 | public var body: some View {
84 | if configuration.isEmpty, let text = configuration.placeholder {
:
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | c.input
276 | if let overlay = c.overlayCenter {
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> KitoFieldRow' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'some View' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing races in between task-isolated and main actor-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
275 | c.input
276 | if let overlay = c.overlayCenter {
[39/48] Compiling KitoFields KitoFieldStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyle.swift:136:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
119 |
120 | /// Type-erased style stored in the environment.
121 | public struct AnyKitoFieldStyle: KitoFieldStyle {
| `- note: consider making struct 'AnyKitoFieldStyle' conform to the 'Sendable' protocol
122 | private let make: (KitoFieldStyleConfiguration) -> AnyView
123 |
:
134 |
135 | private struct KitoFieldStyleKey: EnvironmentKey {
136 | static let defaultValue = AnyKitoFieldStyle(KitoOutlinedFieldStyle())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
211 | public struct KitoOutlinedFieldStyle: KitoFieldStyle {
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
214 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
221 | public struct KitoFilledFieldStyle: KitoFieldStyle {
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
224 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
236 | public struct KitoUnderlinedFieldStyle: KitoFieldStyle {
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
239 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
246 | public struct KitoPlainFieldStyle: KitoFieldStyle {
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
249 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
257 | public struct KitoFloatingLabelFieldStyle: KitoFieldStyle {
258 | public init() {}
259 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | public struct KitoFieldPlaceholder: View {
81 | let configuration: KitoFieldStyleConfiguration
82 | public init(_ configuration: KitoFieldStyleConfiguration) { self.configuration = configuration }
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
83 | public var body: some View {
84 | if configuration.isEmpty, let text = configuration.placeholder {
:
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | c.input
276 | if let overlay = c.overlayCenter {
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> KitoFieldRow' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'some View' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing races in between task-isolated and main actor-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
275 | c.input
276 | if let overlay = c.overlayCenter {
[40/48] Compiling KitoFields KitoFieldStyles.swift
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyle.swift:136:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
119 |
120 | /// Type-erased style stored in the environment.
121 | public struct AnyKitoFieldStyle: KitoFieldStyle {
| `- note: consider making struct 'AnyKitoFieldStyle' conform to the 'Sendable' protocol
122 | private let make: (KitoFieldStyleConfiguration) -> AnyView
123 |
:
134 |
135 | private struct KitoFieldStyleKey: EnvironmentKey {
136 | static let defaultValue = AnyKitoFieldStyle(KitoOutlinedFieldStyle())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyKitoFieldStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
211 | public struct KitoOutlinedFieldStyle: KitoFieldStyle {
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
214 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
221 | public struct KitoFilledFieldStyle: KitoFieldStyle {
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
224 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
236 | public struct KitoUnderlinedFieldStyle: KitoFieldStyle {
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
239 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
246 | public struct KitoPlainFieldStyle: KitoFieldStyle {
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
249 | KitoFieldStack(c) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | var showsPlaceholder = true
99 |
100 | public init(_ configuration: KitoFieldStyleConfiguration, showsPlaceholder: Bool = true) {
| |- note: calls to initializer 'init(_:showsPlaceholder:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
101 | self.configuration = configuration
102 | self.showsPlaceholder = showsPlaceholder
:
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| `- warning: call to main actor-isolated initializer 'init(_:showsPlaceholder:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | @State private var shakes: CGFloat = 0
160 |
161 | public init(_ configuration: KitoFieldStyleConfiguration, showsLabel: Bool = true, @ViewBuilder content: () -> Content) {
| |- note: calls to initializer 'init(_:showsLabel:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
162 | self.configuration = configuration
163 | self.showsLabel = showsLabel
:
257 | public struct KitoFloatingLabelFieldStyle: KitoFieldStyle {
258 | public init() {}
259 | public func makeBody(configuration c: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| `- warning: call to main actor-isolated initializer 'init(_:showsLabel:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | public extension View {
67 | func kitoFieldChrome(_ configuration: KitoFieldStyleConfiguration, fill: Color? = nil, borderWidth: CGFloat? = nil, shape: KitoFieldShape? = nil) -> some View {
| `- note: calls to instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' from outside of its actor context are implicitly asynchronous
68 | modifier(KitoFloatingErrorModifier(configuration: configuration))
69 | .modifier(KitoFieldChrome(
:
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| `- warning: call to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | public struct KitoFieldPlaceholder: View {
81 | let configuration: KitoFieldStyleConfiguration
82 | public init(_ configuration: KitoFieldStyleConfiguration) { self.configuration = configuration }
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
83 | public var body: some View {
84 | if configuration.isEmpty, let text = configuration.placeholder {
:
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | c.input
276 | if let overlay = c.overlayCenter {
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:214:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
212 | public init() {}
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
215 | KitoFieldRow(c).kitoFieldChrome(c)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:215:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
213 | public func makeBody(configuration c: Configuration) -> some View {
214 | KitoFieldStack(c) {
215 | KitoFieldRow(c).kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:224:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
222 | public init() {}
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:225:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
223 | public func makeBody(configuration c: Configuration) -> some View {
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
226 | .kitoFieldChrome(
227 | c,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:226:18: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
224 | KitoFieldStack(c) {
225 | KitoFieldRow(c)
226 | .kitoFieldChrome(
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
227 | c,
228 | fill: c.isFocused ? (c.theme.focusedBackgroundColor ?? c.theme.filledBackgroundColor) : c.theme.filledBackgroundColor,
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:239:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
237 | public init() {}
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:240:29: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
238 | public func makeBody(configuration c: Configuration) -> some View {
239 | KitoFieldStack(c) {
240 | KitoFieldRow(c).kitoFieldChrome(c, shape: .underline)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:249:9: warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
247 | public init() {}
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
| |- warning: sending value of non-Sendable type '() -> KitoFieldRow' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> KitoFieldRow' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
250 | KitoFieldRow(c)
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:250:13: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
248 | public func makeBody(configuration c: Configuration) -> some View {
249 | KitoFieldStack(c) {
250 | KitoFieldRow(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsPlaceholder:)' risks causing data races between main actor-isolated and task-isolated uses
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing data races between main actor-isolated and task-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:262:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
260 | let theme = c.theme
261 | let floating = c.isFocused || !c.isEmpty
262 | KitoFieldStack(c, showsLabel: false) {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated initializer 'init(_:showsLabel:content:)' risks causing races in between task-isolated and main actor-isolated uses
263 | HStack(spacing: theme.accessorySpacing) {
264 | if let leading = c.leading { leading }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing data races between main actor-isolated and task-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:287:14: warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
285 | .padding(theme.contentPadding)
286 | .frame(minHeight: max(theme.minHeight, 56))
287 | .kitoFieldChrome(c)
| |- warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'some View' to main actor-isolated instance method 'kitoFieldChrome(_:fill:borderWidth:shape:)' risks causing races in between task-isolated and main actor-isolated uses
288 | .animation(c.motion.label, value: floating)
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Core/KitoFieldStyles.swift:274:39: warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
272 | }
273 | ZStack(alignment: .leading) {
274 | if floating { KitoFieldPlaceholder(c) }
| |- warning: sending 'c' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'c' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
275 | c.input
276 | if let overlay = c.overlayCenter {
[41/48] Compiling KitoFields KitoPhoneNumber.swift
[42/48] Compiling KitoFields KitoPhoneParser.swift
[43/48] Compiling KitoFields KitoPhoneValidator.swift
[44/48] Compiling KitoFields KitoPasswordStrength.swift
[45/48] Compiling KitoFields KitoTextField.swift
[46/48] Compiling KitoFields KitoCountry.swift
[47/48] Compiling KitoFields KitoCountryDatabase.swift
[48/48] Compiling KitoFields KitoCountryPicker.swift
Build complete! (11.01s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "KitoFields",
"name" : "KitoFields",
"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" : "9.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "KitoFields",
"targets" : [
"KitoFields"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KitoFieldsTests",
"module_type" : "SwiftTarget",
"name" : "KitoFieldsTests",
"path" : "Tests/KitoFieldsTests",
"sources" : [
"KitoAccessorySlotsTests.swift",
"KitoCodeFieldExtrasTests.swift",
"KitoCodeFieldTests.swift",
"KitoCountryDatabaseTests.swift",
"KitoFontFamilyTests.swift",
"KitoFormControllerTests.swift",
"KitoNumberInputTests.swift",
"KitoPasswordStrengthTests.swift",
"KitoPhoneNumberTests.swift",
"KitoResendCodeButtonTests.swift",
"KitoValidationTests.swift"
],
"target_dependencies" : [
"KitoFields"
],
"type" : "test"
},
{
"c99name" : "KitoFields",
"module_type" : "SwiftTarget",
"name" : "KitoFields",
"path" : "Sources/KitoFields",
"product_memberships" : [
"KitoFields"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Resources/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Resources/fr.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "fr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KitoFields/Resources/sw.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "sw"
}
}
}
],
"sources" : [
"Core/KitoAccessory.swift",
"Core/KitoErrorPresentation.swift",
"Core/KitoFieldCore.swift",
"Core/KitoFieldMotion.swift",
"Core/KitoFieldOptions.swift",
"Core/KitoFieldShape.swift",
"Core/KitoFieldStyle.swift",
"Core/KitoFieldStyles.swift",
"Core/KitoFieldTheme.swift",
"Core/KitoFontFamily.swift",
"Core/KitoForm.swift",
"Core/KitoLocalization.swift",
"Core/KitoValidationState.swift",
"Fields/KitoCardFields.swift",
"Fields/KitoCodeField.swift",
"Fields/KitoCodeFieldStyle.swift",
"Fields/KitoCountryField.swift",
"Fields/KitoDateField.swift",
"Fields/KitoEmailField.swift",
"Fields/KitoNumberField.swift",
"Fields/KitoPasswordField.swift",
"Fields/KitoPresetFields.swift",
"Fields/KitoResendCodeButton.swift",
"Fields/KitoSelectField.swift",
"Fields/KitoTextField.swift",
"Phone/KitoCountry.swift",
"Phone/KitoCountryDatabase.swift",
"Phone/KitoCountryPicker.swift",
"Phone/KitoFlag.swift",
"Phone/KitoNativeTextField.swift",
"Phone/KitoPhoneField.swift",
"Phone/KitoPhoneFormatter.swift",
"Phone/KitoPhoneNumber.swift",
"Phone/KitoPhoneParser.swift",
"Phone/KitoPhoneValidator.swift",
"Validation/KitoPasswordStrength.swift",
"Validation/KitoPasswordUI.swift",
"Validation/KitoRule+Formats.swift",
"Validation/KitoRule.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.