目录
目录README.md

StaggeredList

A Staggered Pinterest Like Layout using SwiftUI

![Alt text](https://www.gitlink.org.cn/api/dnrops/SwiftUIStaggeredList/raw/promo.png?raw=true “A Staggered Pinterest Like Layout using SwiftUI”&ref=master)

Installation

  • Add the dependency to your target/project using Swift Package Manager
  • Import framework in your source

How to use

Initialize StaggeredLayoutList passing your collection that conforms to Identifiable. Vertical and Horitontal Spacing can be passed for adding padding between items. Also Section Insets can be passed to add inset to the List.

StaggeredLayoutList(data: self.notes, numberOfColumns: self.numberOfColumns, horizontalSpacing: self.spacing, verticalSpacing: self.spacing, sectionInsets: sectionInset) {
    NoteView(note: $0)
}

Sample App (iOS, macOS, watchOS, tvOS)

https://github.com/alfianlosari/SwiftUIStaggeredNote

Special Thanks

Inspired by objc.io Swift Talk Building Collection View talk at: https://talk.objc.io/episodes/S01E168-building-a-collection-view-part-2

关于
11.2 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号