mrasterisco / combopicker Goto Github PK
View Code? Open in Web Editor NEWA SwiftUI implementation of a picker that also allows direct input.
License: MIT License
A SwiftUI implementation of a picker that also allows direct input.
License: MIT License
Currently, the only way to format values displayed in the picker is by overriding the label
property of the ComboPickerModel
implementation. This doesn't allow further customization, such as using additional context when formatting.
Add a new property that allows clients to inject a value formatter. This formatter is a generic protocol that must accept values of the ComboPickerModel
implementation and return strings.
This won't be applied to macOS, where the LosslessStringConvertible
must be used instead.
On iOS and iPadOS, it should be possible to customize the font of items displayed in the picker. The same font should also be applied to the manual input field, for consistency.
We could make use of this delegate method, instead of the limited one we're using in NativePicker.Coordinator
right now.
When inserting a new value via manual input, it should be added to the list of existing values. This isn't working properly on macOS and tvOS.
Because of a limitation on how the Picker
works in SwiftUI, when displaying two (or more) ComboPicker
in the same view, only one of them will work correctly. The last added will intercept all tap and scroll events and will prevent the other pickers from being used.
This is only a problem on iOS and iPadOS.
This could be fixed by rolling-out our own picker implementation, instead of relying on the system one. This would also have the benefit of allowing custom sizes (instead of forcing the picker to be as wide as its container).
There are some layout issues when embedding the picker in a list, possibly because of the additional space that the picker would like to take.
Investigate how to override the intrinsicContentSize
of the NativePicker
, so that AutoLayout knows what size the picker should have.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.