Skip to content

yu3san3/SyncedScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncedScrollView

A SwiftUI component for synchronizing scrolling across multiple views. It allows you to create a scrollable view with fixed rows and columns, similar to a spreadsheet or table layout.

Usage

Simple Example:

SyncedScrollView {
    // Main scrollable content
} vSyncedContent: {
    // Vertically synchronized content
} hSyncedContent: {
    // Horizontally synchronized content
} topLeftContent: {
    // Top-left corner content (default: `EmptyView`)
}

For more detailed examples, see the #Preview of SyncedScrollView.swift.

Example

An example of SyncedScrollView in action:

Installation

In Xcode, open your project and navigate to Project > Package Dependencies. Then, enter the following URL:

https://github.com/yu3san3/SyncedScrollView.git

About

Create a scrollable view with fixed rows and columns

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages