Commit ab3afe8
authored
Add a read only subscript to
https://square.slack.com/archives/CBZJ5V163/p1751313246347059
UI-8947
When you have a screen with a model type of
`ActionModel<MyWorkflow.State, MyWorkflow.Action>`, you were unable to
use a `let` or computed `var` property on your state model, and
reference it on that screen. If you did you would get a compiler error
of `Cannot assign to property: 'enableDoneButton' is a 'let' constant`,
even if you were only trying to read the property.
## Checklist
- [ ] Unit Tests - There aren't any tests of `ObservableModel` in the
codebase currently. As I'm not very familiar with this codebase, I don't
know how to really make a useful test here.
- [ ] UI Tests
- [ ] Snapshot Tests (iOS only)
- [ ] I have made corresponding changes to the documentationObservableModel (#358)1 parent 175e690 commit ab3afe8
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
0 commit comments