tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

Sync `size` with `frame` #53

Closed tmandry closed 5 years ago

tmandry commented 5 years ago

It turns out I couldn't do this with a delegate, like I mentioned in #48. The best way to keep these properties in sync was to remove (or disregard) the backing store of size altogether, which required subclassing WriteableProperty.

I'm happy with the result, but it makes me wonder if PropertyDelegate is still pulling its weight.