Contents

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.swift in Xcode
  • Use SimpleTable scheme 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