The ObservableObject
conformance allows instances of a class to be used inside views, so that when important changes happen the View will reload.
The @Published
property wrapper tells SwiftUI that changes to a property should trigger View reloads.
class Contact: ObservableObject {
@Published var name: String
@Published var age: Int