tmandry / Swindler

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

Remove write to frame, use position and size instead #50

Closed tmandry closed 5 years ago

tmandry commented 5 years ago

The frame attribute is not writeable.

Writing to position, followed by size is not atomic, but in any scenario I can think of (e.g. while the user is dragging or resizing the window), I think it still does the most reasonable thing.

Fixes #47.