适用于 iOS 和 macOS 的 SwiftUI 表视图

SwiftUI 简单表

迅捷 v5.7 平台 iOS, macOS

📝 描述

SwiftUI 表视图,适用于 iOSmacOS。

  • ✅ 简单易用(查看包含的示例)。
  • ✅ 显示 iOS 上的所有列,即使水平大小类很紧凑。
  • ✅ 支持垂直和水平滚动(或者,如果需要,则根本不滚动)。
  • ✅ 支持“粘性”标头(带视图修饰符)。.simpleTableHeader()
  • ✅ 允许配置列/行大小:等高、等宽或约束纵横比。

🏛 项目结构

swiftui-simple-table (Swift Package)
 └─ SimpleTable (Library)

📖 用法

使用 Swift 包管理器作为依赖项添加到项目中。SimpleTable

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 in XcodePackage.swift
  • Use scheme for building the library.SimpleTable
  • 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

点击跳转