Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the initial page to be specified when setting image inputs #386

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

skjiisa
Copy link

@skjiisa skjiisa commented Jun 19, 2020

Add initialPage: Int argument to setImageInputs and reloadScrollView.

This allows the image inputs to be changed after initialization while keeping position in the slideshow. For example, if the user gets toward the end of the slideshow, the app could load n more images, append them to the Image Inputs, unload n images from the beginning, then reload the inputs with setImageInputs, setting the initialPage to the current page minus n. This would allow the user to stay on the same image while having fewer images loaded, using less memory.

Also includes #385

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