swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Implement more view types

Open stackotter opened this issue 3 years ago • 1 comments
trafficstars

Currently only HStack, VStack, Button and Text are supported. The following view types would also be useful to have:

  • [ ] TextField
  • [ ] Slider
  • [ ] ForEach
  • [ ] Image

If you think of any more, reply below.

For reference on how to implement a container view, see the VStack implementation. For how to implement a non-container view, see the Button implementation.

stackotter avatar Mar 20 '22 07:03 stackotter

Not entirely sure if SwiftGtk supports it but a Picker would be nice to have.

NinjaCheetah avatar Mar 21 '22 14:03 NinjaCheetah

I've implemented these 4 view types now (as well as implementing some views required for control flow). And I'll implement a Picker now. Further view types can be given their own issues as views are easier to implement now 👍

stackotter avatar Nov 13 '22 03:11 stackotter

Actually, Picker might take a little while to implement so I'll do that later once I've made some more API improvements.

stackotter avatar Nov 13 '22 03:11 stackotter