Tried this in SwiftUI, but SwiftUI drag & drop on macOS is apparently quite limited. So, NSCollectionView instead.
[x] Disable wrapping on collection view items
[x] Implement drag & drop
[x] Pass window columns
[x] Need to make the previous menu item active again after exiting sheet
[x] Need to update menu items for existing column as well. For example, if the window previously had just one column, and one is added, we need to add Rearrange… to it.
- [ ] Maybe: pass each column's aspect ratio as well?
[x] finish layout of view items
[x] Remove (obsolete) SwiftUI code. Leave for now so we can prototype the items.
[x] Apply change
[x] dragging is partially broken: for example, dragging from 0 to 1 doesn't seem to work
Implements #154
Tried this in SwiftUI, but SwiftUI drag & drop on macOS is apparently quite limited. So,
NSCollectionView
instead.- [ ] Maybe: pass each column's aspect ratio as well?