Hello Devs and Support,
I am a new developer with a challenge to build a MacOS app that captures preliminary data from clients (text, signatures, jpgs and pdfs) and then pulls that data into a database where a secondary app automatically extracts the data into a word document template.
I have been researching to find documentation and support on how to implement this using SwiftUI and have only managed to build a basic content view:
// ContentView.swift
// Client Form
//
// Created by Andrew Duncan Poole on 2022/05/10.
//
import SwiftUI
struct ContentView: View {
@State var firstName = ""
@State var lastName = ""
@State var companyName = ""
@State var isExchange: Bool = true
@State var description = "This book is about .."
@State var price = ""
@State private var scrollViewContentSize: CGSize = .zero
@State private var categoryIndex = 0
var categorySelection = ["Action", "classic","Comic Book","Fantasy","Historical","Literary Fiction","Biographies","Essays"]
var body: some View {
ScrollView(.horizontal, showsIndicators: true) {
HStack (spacing: 1) {
Form {
Section(header: Text("CE Technical File Preliminary Data")) {
TextField("First Name", text: $firstName)
TextField("Last Name", text: $lastName)
TextField("Company Name", text: $companyName)
Toggle(isOn: $isExchange) {
Text("I'm interested in an exhange")
}
.frame(width: 650)
}
Section() {
Picker(selection: $categoryIndex, label: Text("Categorie")) {
ForEach(0 ..< categorySelection.count) {
Text(self.categorySelection[$0])
}
}
}
Section(header: Text("Description")) {
TextEditor(text: $description)
}
Section {
Button(action: {
print("submitted ..")
}) {
Text("Publish now")
}
}
}
}.navigationTitle("Simplimedica Client Form")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
}
Is there anyone who can PLEASE advise where I can find further assistance be it tutorials or sample code for this...