Skip to content

Conversation

@gfreezy
Copy link

@gfreezy gfreezy commented Sep 25, 2022

Do not convert the input data to array to invalidate lazy effects.

Usecase:

Photos PHFetchResult is a lazy object. Converting it to an array cost a lot of time if you have a large number of photos.

@gfreezy
Copy link
Author

gfreezy commented Sep 25, 2022

Seems SwiftUIPager.xcodeproj is useless. We should remove it to avoid confusion

@gfreezy gfreezy changed the title use custom 'PagerData' protocol for data use custom 'PagerData' protocol for data to avoid unexpected slowness Sep 25, 2022
`onPageChanged` `onPageWillChange`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant