I need to create many data entry forms for simple structs/classes etc. I'd rather not be involved in the tedium of writing up the views manually.
Ideally I could just provide some "codable" struct/class and the view would could be generated automatically for me
As an example I have some models containing simple fields such as these
struct Person {
let age: Int
let firstName: String
let lastName: String
}
struct Blah {
let a: Int
let b: String
let c: Date
let d: Float
}
etc. etc.
Any "magic" similar to "Codable" which could generate an appropriate SwiftUI view ?
for instance:
struct Person: SwiftUIView {
...
}