borisovodov/TreePicker
SwiftUI tree picker view for selecting options from hierarchical data.
Features
TreePicker package has several tree pickers for different selection value: exactly one selected value, optional value and set of values. Use TreeSinglePicker, TreeOptionalPicker and TreeMultiPicker respectively.
Work with hierarchical data, it's children and selection is similar to SwiftUI hierarchical List. Additionaly you can specify selection method. Next methods available:
- Only leaves (nodes without children) are selectable.
- All nodes (include folders) are selectable.
- All nodes are selectable and selecting a node automatically selects all its child nodes. This method is available for
TreeMultiPickeronly.
Usage
See the documentation.
Package Metadata
Repository: borisovodov/TreePicker
Homepage: https://swiftpackageindex.com/borisovodov/TreePicker
Stars: 5
Forks: 0
Open issues: 14
Default branch: main
Primary language: swift
License: MIT
Topics: hierarchical-data, ios, macos, picker, selector, swiftui, tree-structure, treeselect
README: README.md