darrarski/swiftui-simple-table
SwiftUI table view for iOS and macOS
π Description
SwiftUI table view, which works on iOS and macOS.
- β Simple to use (check out included examples).
- β Displays all columns on iOS, even when the horizontal size class is compact.
- β Supports vertical and horizontal scrolling (or no scrolling at all if that's what you need).
- β
Supports "sticky" headers (with
.simpleTableHeader()view modifier). - β Allows configuring column/row size: equal heights, equal widths, or constrained aspect ratio.
π Project structure
swiftui-simple-table (Swift Package)
ββ SimpleTable (Library)π Usage
Use Swift Package Manager to add SimpleTable as a dependency to your project.
Check out included examples:
βΆοΈ Colors table example
[Colors table example]
βΆοΈ Shapes table example
[Colors table example]
βΆοΈ Multiplication table example
[Multiplication table example]
βΆοΈ People table example
[Multiplication table example]
π Develop
- Use Xcode (version β₯ 14).
- Clone the repository or create a fork & clone it.
- Open
Package.swiftin Xcode - Use
SimpleTablescheme for building the library. - If you want to contribute:
- Create a pull request containing your changes or bugfixes.
βοΈ Do you like the project?
<a href="https://www.buymeacoffee.com/darrarski" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60" width="217" style="height: 60px !important;width: 217px !important;" ></a>
π License
Copyright Β© 2023 Dariusz Rybicki Darrarski
License: MIT
Package Metadata
Repository: darrarski/swiftui-simple-table
Stars: 22
Forks: 5
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
README: README.md