Skip to content

poromaa/swiftui-capsule-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

swiftui-capsule-picker

CapsulePicker_AdobeExpress

This was created based on this Stack overflow-thread. Customizable Picker that imitate Apple original in feel.

https://stackoverflow.com/questions/60804512/swiftui-create-a-custom-segmented-control-also-in-a-scrollview#new-answer No solution had really the feel of the original Picker. Made some improvements such as

  • detect on-press/release that toggle isDragging (to allow capsule to animate size)
  • possiblility to drag over several options and then release and see updates
  • well. just try it if it helps.

To bee seen as a starting point. Intentially kept the code as easy as possible (uses array of titles [String] instead of views so no support for icons etc).

About

Customizable Picker that imitate Apple original but can be made custom.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages