Skip to content
项目

关于

一个 Swift 数据表格包,可在 iOS 上将网格状数据集以格式整齐的表格显示。它是 UICollectionView 的子类,支持排序和搜索,并提供可扩展的选项。

网站与应用开发

这些数字如何统计

可以做什么

  • Type-Safe Columns - Declarative API with key paths and custom transforms
  • Animated Diffing - Smooth updates that calculate exactly what changed
  • Self-Sizing Cells - Automatic row heights, efficient for 100k+ rows
  • 928x Faster - 50,000 rows in 0.25s (was 4+ minutes)

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Swift DataTables

CI Status SPM Compatible Swift 5.9 iOS 17+

The powerful, flexible data table component that iOS deserves.

Display grid-like data with sorting, searching, and smooth animations — all in just a few lines of code.


Shape the Roadmap

Vote for features — your votes decide what gets built next.

See the complete documentation →


Guides & API Reference

Explore the docs — step-by-step tutorials, real-world patterns, and complete API reference. From first table to production-ready.


Features

Feature Description
Type-Safe Columns Declarative API with key paths and custom transforms
Animated Diffing Smooth updates that calculate exactly what changed
Self-Sizing Cells Automatic row heights, efficient for 100k+ rows
928x Faster 50,000 rows in 0.25s (was 4+ minutes)
Custom Cells Full Auto Layout support via cell providers
Fixed Columns Freeze columns on left or right sides
Sorting & Search Built-in or native navigation bar search

Quick Start

import SwiftDataTables

struct Employee: Identifiable {
    let id: String
    let name: String
    let role: String
}

let columns: [DataTableColumn<Employee>] = [
    .init("Name", \.name),
    .init("Role", \.role)
]

let dataTable = SwiftDataTable(columns: columns)
dataTable.setData(employees, animatingDifferences: true)

See the full documentation → — step-by-step tutorials, real-world patterns, and complete API reference. From first table to production-ready.


Install

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/pavankataria/SwiftDataTables", from: "0.9.0")
]

Or in Xcode: File → Add Package Dependencies → https://github.com/pavankataria/SwiftDataTables


Demo App

  1. Clone the repo
  2. Open SwiftDataTables.xcodeproj
  3. Select the DemoSwiftDataTables scheme
  4. Build and Run

Support

Sponsor on Open Collective


Author

Pavan Kataria — @pavan_kataria

License

MIT License. See LICENSE for details.

探索相关项目

加载中…