/SwiftUI-Pagination-preload

SwiftUI-Pagination-preload is a user-oriented project that implements the paging function.

Primary LanguageSwift

SwiftUI List Pagination base RandomAccessCollectoin

Introduction


Pagination code is from crelies'List-Pagination-SwiftUI. I made a complete project with reference to crelies' code

SwiftUI-Pagination-preload is a user-oriented project that implements the paging function.

Features

  • define struct implement Identifiable
  • use RandomAccessCollection to get isLastItem function
  • SwiftUI show data
  • preload data