Skip to content

Commit 610e8f7

Browse files
authored
Mark more fields @_spi(LiveForm)
Signed-off-by: Carson Katri <[email protected]>
1 parent 15078a8 commit 610e8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LiveViewNative/ViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public class FormModel: ObservableObject, CustomDebugStringConvertible {
6464
var submitAction: (() -> ())?
6565

6666
/// The form data for this form.
67-
@Published internal private(set) var data = [String: any FormValue]()
67+
@Published @_spi(LiveForm) public private(set) var data = [String: any FormValue]()
6868
var formFieldWillChange = PassthroughSubject<String, Never>()
6969

7070
/// A publisher that emits a value before sending the form submission event.
7171
var formWillSubmit = PassthroughSubject<(), Never>()
7272

73-
var fileUploads: [FileUpload] = []
73+
@_spi(LiveForm) public internal(set) var fileUploads: [FileUpload] = []
7474
public struct FileUpload: Identifiable {
7575
public let id: String
7676
public let data: Data

0 commit comments

Comments
 (0)