Skip to content

Keep selection#47

Open
renssies wants to merge 3 commits into
masterfrom
feature/44-keep-selection
Open

Keep selection#47
renssies wants to merge 3 commits into
masterfrom
feature/44-keep-selection

Conversation

@renssies

Copy link
Copy Markdown
Contributor

Adds 2 options to TatsiConfig:

  • Keep selection while switching between albums
  • Supply pre-selected images when opening the picker, handy when you want to change the selection

I want to test this options first before merging into master.
If you have code feedback, please post it here.
If you have feedback about the feature, see #44.

}

/// Set this to a number of PHAsset instances that were selected before the picker was opened.
public var preselectedAssets: [PHAsset]? = nil

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my suggestion is to declare this as an empty array like public var preselectedAssets = [PHAsset]() because that is the actual default behaviour, that none are preselected. nil as default does not have an extra meaning here over an empty array, I think.

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.

2 participants