This PR fixes a bug a in the Show grid sample where some of the grid settings wouldn't save state in between the sheet being closed and reopened. To avoid setting state in the view's init, I moved the state variables to a model. I tired to change it as little as possible so there should be no behavior changes besides the bug fix.
Linked Issue(s)
swift/issues/5774
How To Test
Ensure different combinations of gird settings persist in between the sheet being closed.
Description
This PR fixes a bug a in the
Show grid
sample where some of the grid settings wouldn't save state in between the sheet being closed and reopened. To avoid setting state in the view's init, I moved the state variables to a model. I tired to change it as little as possible so there should be no behavior changes besides the bug fix.Linked Issue(s)
swift/issues/5774
How To Test