SwiftUI - Pass variable value from child view to parent view

Job ID: 35594304

Budget: £20 – £250 GBP

Hello, I am new to SwiftUI and need some help using an ObservalObject with possible a MVVM design pattern.

*** MUST BE SWIFTUI ***

please take a look at the JourneyPlannerView file. On line 44 I have a variable named : @State private var fromLocDateTime: Date?
I need this value to be populated based on the value the user chooses in the OutwardDateTimeView DatePicker view. I would like this to be achieved using OberservableObject, and if necessary, using a MVVM design pattern.

If you can help me please get in touch. There is no deadline for the project so take as long as you need, many thanks
Related categories: iPhone Swift iOS Development