Build Information
Failed to build FlutterLikeForm, reference 1.0.3 (ff7cce), with Swift 6.2 for macOS (SPM) on 15 Sep 2025 17:40:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yordgenome03/FlutterLikeForm.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yordgenome03/FlutterLikeForm
* tag 1.0.3 -> FETCH_HEAD
HEAD is now at ff7cce8 Bump version to 1.0.3
Cloned https://github.com/yordgenome03/FlutterLikeForm.git
Revision (git rev-parse @):
ff7cce822784640435f95b9b396471efd972d3c3
SUCCESS checkout https://github.com/yordgenome03/FlutterLikeForm.git at 1.0.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/yordgenome03/FlutterLikeForm.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling FlutterLikeForm AutovalidateMode.swift
[4/9] Emitting module FlutterLikeForm
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:7:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
8 |
9 | /// A `FocusState` used to track whether the form field is focused or not.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:10:6: error: 'FocusState' is only available in macOS 12.0 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
8 |
9 | /// A `FocusState` used to track whether the form field is focused or not.
10 | @FocusState private var isFocused: Bool
| `- error: 'FocusState' is only available in macOS 12.0 or newer
11 |
12 | /// The configuration for the form field, such as error message appearance.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:29:37: error: 'red' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:30:35: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
| `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:32:45: error: 'leading' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
| `- error: 'leading' is only available in macOS 10.15 or newer
33 | hideEmptyErrorSpace: Bool = false
34 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .leading, spacing: 0) {
31 | content()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:48:33: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:5:34: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:7:35: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
8 |
9 | /// The font style of the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:10:34: error: 'Font' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
8 |
9 | /// The font style of the error message text.
10 | public var errorMessageFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
11 |
12 | /// The padding around the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:13:37: error: 'EdgeInsets' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
11 |
12 | /// The padding around the error message text.
13 | public var errorMessagePadding: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
14 |
15 | /// The alignment of the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:16:39: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
14 |
15 | /// The alignment of the error message text.
16 | public var errorMessageAlignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
17 |
18 | /// A flag to determine whether the space for the error message should be hidden when the message is empty.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:29:28: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:30:27: error: 'Font' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
| `- error: 'Font' is only available in macOS 10.15 or newer
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:31:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
32 | errorMessageAlignment: Alignment = .leading,
33 | hideEmptyErrorSpace: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:32:32: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
33 | hideEmptyErrorSpace: Bool = false
34 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
10 |
11 | /// The current value of the form field.
12 | @Published public var value: Value
| `- error: 'Published' is only available in macOS 10.15 or newer
13 |
14 | /// An optional error message to be displayed if the field is invalid.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
13 |
14 | /// An optional error message to be displayed if the field is invalid.
15 | @Published public var errorMessage: String? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// A flag indicating whether the user has interacted with the field.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
16 |
17 | /// A flag indicating whether the user has interacted with the field.
18 | @Published public var hasInteracted = false
| `- error: 'Published' is only available in macOS 10.15 or newer
19 |
20 | /// A flag indicating whether the field is valid or not.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:21:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
19 |
20 | /// A flag indicating whether the field is valid or not.
21 | @Published public var isValid = true
| `- error: 'Published' is only available in macOS 10.15 or newer
22 |
23 | /// A computed property to determine whether there is an error (i.e., whether `errorMessage` is non-nil).
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:33:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
31 |
32 | /// A set of cancellables used to manage the Combine subscriptions.
33 | private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
34 |
35 | /// Initializes a new instance of `FormFieldState`.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
12 |
13 | /// The ID of the previously active field.
14 | @Published public var previousActiveFieldId: String?
| `- error: 'Published' is only available in macOS 10.15 or newer
15 |
16 | /// The ID of the currently active field.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
15 |
16 | /// The ID of the currently active field.
17 | @Published public var activeFieldId: String?
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | /// Initializes a new instance of `FormState`.
[5/9] Compiling FlutterLikeForm AnyFormFieldState.swift
[6/9] Compiling FlutterLikeForm FormFieldState.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
10 |
11 | /// The current value of the form field.
12 | @Published public var value: Value
| `- error: 'Published' is only available in macOS 10.15 or newer
13 |
14 | /// An optional error message to be displayed if the field is invalid.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
13 |
14 | /// An optional error message to be displayed if the field is invalid.
15 | @Published public var errorMessage: String? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// A flag indicating whether the user has interacted with the field.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
16 |
17 | /// A flag indicating whether the user has interacted with the field.
18 | @Published public var hasInteracted = false
| `- error: 'Published' is only available in macOS 10.15 or newer
19 |
20 | /// A flag indicating whether the field is valid or not.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:21:6: error: 'Published' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
19 |
20 | /// A flag indicating whether the field is valid or not.
21 | @Published public var isValid = true
| `- error: 'Published' is only available in macOS 10.15 or newer
22 |
23 | /// A computed property to determine whether there is an error (i.e., whether `errorMessage` is non-nil).
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:33:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
31 |
32 | /// A set of cancellables used to manage the Combine subscriptions.
33 | private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
34 |
35 | /// Initializes a new instance of `FormFieldState`.
<unknown>:0: error: cannot convert value of type 'KeyPath<FormFieldState<Value>, Value>' to expected argument type 'ReferenceWritableKeyPath<FormFieldState<Value>, Value>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FormFieldState<Value>, String?>' to expected argument type 'ReferenceWritableKeyPath<FormFieldState<Value>, String?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FormFieldState<Value>, Bool>' to expected argument type 'ReferenceWritableKeyPath<FormFieldState<Value>, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FormFieldState<Value>, Bool>' to expected argument type 'ReferenceWritableKeyPath<FormFieldState<Value>, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:45:9: error: setter for 'value' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
45 | self.value = initialValue
| |- error: setter for 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | self.validator = validator
47 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:55:14: error: 'dropFirst' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
53 | // Watch for changes to the field's value and trigger validation based on the form's autovalidate mode.
54 | $value
55 | .dropFirst()
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .sink { [weak self] _ in
57 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:56:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
54 | $value
55 | .dropFirst()
56 | .sink { [weak self] _ in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | guard let self else { return }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:75:17: error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
73 | break
74 | }
75 | self.hasInteracted = true
| |- error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | .store(in: &cancellables)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:77:14: error: 'store(in:)' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
75 | self.hasInteracted = true
76 | }
77 | .store(in: &cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 |
79 | // Watch for changes to the active field ID and trigger validation if necessary.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:81:14: error: 'dropFirst' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
79 | // Watch for changes to the active field ID and trigger validation if necessary.
80 | formState.$activeFieldId
81 | .dropFirst()
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .sink { [weak self] activeFieldId in
83 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:82:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
80 | formState.$activeFieldId
81 | .dropFirst()
82 | .sink { [weak self] activeFieldId in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | guard let self else { return }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:92:14: error: 'store(in:)' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
40 | /// - initialValue: The initial value of the form field.
41 | /// - validator: An optional validation closure to validate the value of the field.
42 | public init(formState: FormState, id: String, initialValue: Value, validator: ((Value) -> String?)? = nil) {
| `- note: add @available attribute to enclosing initializer
43 | self.formState = formState
44 | self.id = id
:
90 | }
91 | }
92 | .store(in: &cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:97:9: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
94 |
95 | /// Resets the form field's state, clearing the error message and interaction state.
96 | public func reset() {
| `- note: add @available attribute to enclosing instance method
97 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | hasInteracted = false
99 | isValid = true
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:98:9: error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
94 |
95 | /// Resets the form field's state, clearing the error message and interaction state.
96 | public func reset() {
| `- note: add @available attribute to enclosing instance method
97 | errorMessage = nil
98 | hasInteracted = false
| |- error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | isValid = true
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:99:9: error: setter for 'isValid' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
94 |
95 | /// Resets the form field's state, clearing the error message and interaction state.
96 | public func reset() {
| `- note: add @available attribute to enclosing instance method
97 | errorMessage = nil
98 | hasInteracted = false
99 | isValid = true
| |- error: setter for 'isValid' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:105:13: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
101 |
102 | /// Validates the field's current value using the provided validator, if available.
103 | public func validate() {
| `- note: add @available attribute to enclosing instance method
104 | if let validator {
105 | errorMessage = validator(value)
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | isValid = errorMessage == nil
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:106:13: error: setter for 'isValid' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
101 |
102 | /// Validates the field's current value using the provided validator, if available.
103 | public func validate() {
| `- note: add @available attribute to enclosing instance method
104 | if let validator {
105 | errorMessage = validator(value)
106 | isValid = errorMessage == nil
| |- error: setter for 'isValid' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:113:9: error: setter for 'value' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
110 | /// Updates the field's value and triggers validation.
111 | /// - Parameter value: The new value for the field.
112 | public func didChange(value: Value) {
| `- note: add @available attribute to enclosing instance method
113 | self.value = value
| |- error: setter for 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | hasInteracted = true
115 | validate()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldState.swift:114:9: error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
5 | ///
6 | /// This class conforms to `ObservableObject` to allow automatic updates to the UI, and it supports validation logic.
7 | public class FormFieldState<Value>: ObservableObject, Equatable, AnyFormFieldState where Value: Equatable {
| `- note: add @available attribute to enclosing generic class
8 | /// The global form state, which includes general form-level settings and information.
9 | public let formState: FormState
:
110 | /// Updates the field's value and triggers validation.
111 | /// - Parameter value: The new value for the field.
112 | public func didChange(value: Value) {
| `- note: add @available attribute to enclosing instance method
113 | self.value = value
114 | hasInteracted = true
| |- error: setter for 'hasInteracted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | validate()
116 | }
[7/9] Compiling FlutterLikeForm FormState.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
12 |
13 | /// The ID of the previously active field.
14 | @Published public var previousActiveFieldId: String?
| `- error: 'Published' is only available in macOS 10.15 or newer
15 |
16 | /// The ID of the currently active field.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
15 |
16 | /// The ID of the currently active field.
17 | @Published public var activeFieldId: String?
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | /// Initializes a new instance of `FormState`.
<unknown>:0: error: cannot convert value of type 'KeyPath<FormState, String?>' to expected argument type 'ReferenceWritableKeyPath<FormState, String?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FormState, String?>' to expected argument type 'ReferenceWritableKeyPath<FormState, String?>'
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:35:9: error: setter for 'previousActiveFieldId' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
30 | ///
31 | /// - Parameter id: The ID of the field that is now active.
32 | public func updateActiveFieldId(_ id: String?) {
| `- note: add @available attribute to enclosing instance method
33 | guard id != activeFieldId else { return }
34 |
35 | previousActiveFieldId = activeFieldId
| |- error: setter for 'previousActiveFieldId' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | activeFieldId = id
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:36:9: error: setter for 'activeFieldId' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
30 | ///
31 | /// - Parameter id: The ID of the field that is now active.
32 | public func updateActiveFieldId(_ id: String?) {
| `- note: add @available attribute to enclosing instance method
33 | guard id != activeFieldId else { return }
34 |
35 | previousActiveFieldId = activeFieldId
36 | activeFieldId = id
| |- error: setter for 'activeFieldId' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:64:9: error: setter for 'activeFieldId' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
60 |
61 | /// Resets the state of all fields in the form, clearing their error messages and interaction states.
62 | public func reset() {
| `- note: add @available attribute to enclosing instance method
63 | fieldStates.forEach { $0.reset() }
64 | activeFieldId = nil
| |- error: setter for 'activeFieldId' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | previousActiveFieldId = nil
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormState.swift:65:9: error: setter for 'previousActiveFieldId' is only available in macOS 10.15 or newer
4 | /// A state model that manages the global state for a form, including the validation status and active field.
5 | /// This class tracks the active field, its previous state, and controls the validation and resetting of all form fields.
6 | public class FormState: ObservableObject {
| `- note: add @available attribute to enclosing class
7 | /// A collection of form field states.
8 | private var fieldStates: [AnyFormFieldState]
:
60 |
61 | /// Resets the state of all fields in the form, clearing their error messages and interaction states.
62 | public func reset() {
| `- note: add @available attribute to enclosing instance method
63 | fieldStates.forEach { $0.reset() }
64 | activeFieldId = nil
65 | previousActiveFieldId = nil
| |- error: setter for 'previousActiveFieldId' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
[8/9] Compiling FlutterLikeForm FormFieldConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:7:35: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
8 |
9 | /// The font style of the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:10:34: error: 'Font' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
8 |
9 | /// The font style of the error message text.
10 | public var errorMessageFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
11 |
12 | /// The padding around the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:13:37: error: 'EdgeInsets' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
11 |
12 | /// The padding around the error message text.
13 | public var errorMessagePadding: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
14 |
15 | /// The alignment of the error message text.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:16:39: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
14 |
15 | /// The alignment of the error message text.
16 | public var errorMessageAlignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
17 |
18 | /// A flag to determine whether the space for the error message should be hidden when the message is empty.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:29:28: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:30:27: error: 'Font' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
| `- error: 'Font' is only available in macOS 10.15 or newer
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:31:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
32 | errorMessageAlignment: Alignment = .leading,
33 | hideEmptyErrorSpace: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:32:32: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
33 | hideEmptyErrorSpace: Bool = false
34 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:29:37: error: 'red' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:30:35: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
| `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:32:45: error: 'leading' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
| `- error: 'leading' is only available in macOS 10.15 or newer
33 | hideEmptyErrorSpace: Bool = false
34 | ) {
[9/9] Compiling FlutterLikeForm FormField.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:7:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
8 |
9 | /// A `FocusState` used to track whether the form field is focused or not.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:10:6: error: 'FocusState' is only available in macOS 12.0 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
8 |
9 | /// A `FocusState` used to track whether the form field is focused or not.
10 | @FocusState private var isFocused: Bool
| `- error: 'FocusState' is only available in macOS 12.0 or newer
11 |
12 | /// The configuration for the form field, such as error message appearance.
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:29:37: error: 'red' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:30:35: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
| `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormFieldConfig.swift:32:45: error: 'leading' is only available in macOS 10.15 or newer
3 | /// A configuration struct that defines the appearance and behavior of the error message in the `FormField`.
4 | /// You can customize the error message's color, font, padding, alignment, and visibility.
5 | public struct FormFieldConfig {
| `- note: add @available attribute to enclosing struct
6 | /// The color of the error message text.
7 | public var errorMessageColor: Color
:
26 | /// - errorMessageAlignment: The alignment of the error message text (default is `.leading`).
27 | /// - hideEmptyErrorSpace: A flag to hide the error space when the message is empty (default is `false`).
28 | public init(
| `- note: add @available attribute to enclosing initializer
29 | errorMessageColor: Color = .red,
30 | errorMessageFont: Font = .system(size: 12),
31 | errorMessagePadding: EdgeInsets = .init(top: 4, leading: 0, bottom: 0, trailing: 0),
32 | errorMessageAlignment: Alignment = .leading,
| `- error: 'leading' is only available in macOS 10.15 or newer
33 | hideEmptyErrorSpace: Bool = false
34 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .leading, spacing: 0) {
31 | content()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:48:33: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:5:34: error: 'View' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:24:9: error: setter for 'state' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
21 | /// - config: The configuration of the form field (default is an empty configuration).
22 | /// - content: A closure that provides the content of the form field.
23 | public init(state: FormFieldState<Value>, config: FormFieldConfig = .init(), content: @escaping () -> Content) {
| `- note: add @available attribute to enclosing initializer
24 | self.state = state
| |- error: setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.config = config
26 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:30:9: error: 'VStack' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .leading, spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | content()
32 | // TODO: Implement proper focus state management
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:30:28: error: 'leading' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .leading, spacing: 0) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | content()
32 | // TODO: Implement proper focus state management
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:55:20: error: 'AnyView' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
53 | message = " "
54 | } else {
55 | return AnyView(EmptyView())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:55:28: error: 'EmptyView' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
53 | message = " "
54 | } else {
55 | return AnyView(EmptyView())
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:58:16: error: 'AnyView' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
56 | }
57 |
58 | return AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | Text(message)
60 | .foregroundColor(config.errorMessageColor)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:59:13: error: 'Text' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
57 |
58 | return AnyView(
59 | Text(message)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .foregroundColor(config.errorMessageColor)
61 | .font(config.errorMessageFont)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:60:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
58 | return AnyView(
59 | Text(message)
60 | .foregroundColor(config.errorMessageColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .font(config.errorMessageFont)
62 | .padding(config.errorMessagePadding)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:61:18: error: 'font' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
59 | Text(message)
60 | .foregroundColor(config.errorMessageColor)
61 | .font(config.errorMessageFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .padding(config.errorMessagePadding)
63 | .frame(maxWidth: .infinity, alignment: config.errorMessageAlignment)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:62:18: error: 'padding' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
60 | .foregroundColor(config.errorMessageColor)
61 | .font(config.errorMessageFont)
62 | .padding(config.errorMessagePadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .frame(maxWidth: .infinity, alignment: config.errorMessageAlignment)
64 | )
/Users/admin/builder/spi-builder-workspace/Sources/FlutterLikeForm/FormField.swift:63:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
3 | /// A SwiftUI view that represents a form field with a customizable error message and validation state.
4 | /// It allows rendering any content, and automatically manages the error message display based on the validation state.
5 | public struct FormField<Content: View, Value: Equatable>: View {
| `- note: add @available attribute to enclosing generic struct
6 | /// The state of the form field, which includes its validation status and error message.
7 | @ObservedObject var state: FormFieldState<Value>
:
46 | /// A private computed property that returns the error text view.
47 | /// If an error message exists, it will be displayed according to the configuration. Otherwise, an empty view will be shown based on the `hideEmptyErrorSpace` flag.
48 | private var errorText: some View {
| `- note: add @available attribute to enclosing property
49 | var message: String
50 | if let errorMessage = state.errorMessage {
:
61 | .font(config.errorMessageFont)
62 | .padding(config.errorMessagePadding)
63 | .frame(maxWidth: .infinity, alignment: config.errorMessageAlignment)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | )
65 | }
BUILD FAILURE 6.2 macosSpm