pilot
pilot copied to clipboard
Cross-platform MVVM in Swift
Right now `ViewModelUserEvent.click` actually gets sent on mouse down. Opening the bug for discussion/figuring out the best plan. FWIW, most people should probably use `.select` as it covers more edge...
1. `Async.debounce` doesn't actually wait (see aa6c8ed4dafe2652b0f6ccdeecd1db0eb24441bc) 2. `Async.throttle` will swallow an invocation that happens during the reset window for the previous, this is unexpected. Either fix or remove.
Basically https://github.com/dropbox/pilot/blob/master/Core/Source/MVVM/SimpleModelCollection.swift#L78 needs to add an empty section `[.loaded([])]` if there are no sections at all since flattenedState treats `[]` as `.notLoaded` Which leads to the surprising interaction where a...
From internal comment/bug: > iOS assigns `accessibilityDragSourceDescriptors` and `accessibilityDropPointDescriptors` to the cell, but doesn't look up the hierarchy from elements to their ancestors to see if drag and drop applies,...
Building on the work in #157 we can remove ModelVersion and ModelVersionMixer entirely from Pilot by making model conform to Hashable as part of its requirements. Pros: - Very common...
It's easy to get bitten with a struct `ViewModel` since it gets copied by value within the data sources.
Discussed offline but we have a common pattern in our app is to add a feature the the view controller to select a certain model when the model collection first...
It would be great to allow a `CollectionSupportingView` to be able to invalidate it's own layout in response to some view state that changes it's bounds. Eg. a input text...
Preliminary investigation tracking down app crash suggests theres a seg fault when going from `.loading(nil)` to `.loaded([[...]])` which is alleviated by always starting with a single empty section (`.loading([[]]))` Needs...
From @danielrhammond 's comment in https://github.com/dropbox/pilot/pull/109 : random idea, but since we do a lot of things like this in our app it might be nice to provide an optional...