Skip to content

Conversation

@renssies
Copy link
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

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.

3 participants