[Second review] SE-0395: Observability

Ah, I can assure you that most iOS/macOS developers would be equally unhappy they can't start using new Observation as they need to support, say, iOS 15 / macOS 10.15.

Could we have this as an alternative?

@MAGIC class Model {
    @ANOTHER_MAGIC var field = 42
}

struct MyView: View {
    @YET_ANOTHER_MAGIC var model = Model()
    ...
}

That will translate accordingly to either @Observable & Co / @ObservableObject & Co depending upon OS version?

1 Like