A SwiftUI implementation for chips. Chips allow users to view information, make selections, filter content, and enter data.
The library support 3 different modes:
- Single Selection: Only 0 or 1 chips can be selected at the same time.
- Multiple Selection: 0 or all chips can be selected at the same time.
- Deletable: Chips cannot be selected by the user but can be eventually deleted.
In this mode the user can only select 1 chip at a time, or none.
In this mode the user can only select from 0 to all chips.
In this mode the user cannot select the chips, but eventually is possible to delete them.
WIP a detailed guide
- In Xcode, navigate in menu: File > Swift Packages > Add Package Dependency
- Add
https://github.com/cianiandreadev/swift-chips
- Select "Up to Next Major" with
0.1.0
- Currently the wrapper of the chips do not layout the vertical height correctly. workaround add a
.padding
on the bottom