Skip to content

Instantly share code, notes, and snippets.

@KrauserHuang
Created March 31, 2022 04:08
Show Gist options
  • Save KrauserHuang/dff29e32d79abba203cc114fad0621f6 to your computer and use it in GitHub Desktop.
Save KrauserHuang/dff29e32d79abba203cc114fad0621f6 to your computer and use it in GitHub Desktop.
var snapshot = Snapshot()
// 要裝入sections/items
snapshot.appendSections([.main])
snapshot.appendItems(videoList)
// snapshot.appendItems(list, toSection: .main)
dataSource.apply(snapshot, animatingDifferences: animatingDifferencecs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment