Could you provide more explanation on the error. It's hard to try and guess here.
Am getting a "Return from initializer without initializing all stored properties" error in Xcode on teh second to last line, after the init
After which init ?
You declare order, but I do not see where you initialise it:
struct EditOrderView: View {
@Environment(\.dismiss) private var dismiss
let order: Order
That could well be the problem.
If so, you should initialise:
let order = Order()
Or using any initialiser you've defined (you don't show how Order is defined, so hard to be more specific.
And please, when you get an answer (other threads), tell if that does not solve what is the remaining issue or what is it you don't understand. Otherwise don't forget to close the thread by marking the correct answer.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: