SwiftUI Simple Table

Swift v5.7 platforms iOS, 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?

Buy Me A Coffee

? License

Copyright © 2023 Dariusz Rybicki Darrarski

License: MIT

GitHub

View Github