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

Use constant for configuring limit #19

Merged
merged 3 commits into from
Jan 4, 2018
Merged

Conversation

tflhyl
Copy link
Contributor

@tflhyl tflhyl commented Oct 18, 2017

Avoid confusion e.g. #14.

@carouselljenkins
Copy link

@hydralisk01, can you review this pull request?

@tflhyl tflhyl requested a review from bcylin October 18, 2017 10:43
@@ -47,7 +49,7 @@ internal class CarousellImagePickerController: ImagePickerController {
)

let subtitle = NSAttributedString(
string: "You can choose up to 4 photos for your listing.\n",
string: "You can choose up to \(selectionsLimit) photos for your listing.\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a good idea! Does it need a .stringsdict in the example for both singular and plural photos?

Copy link

Choose a reason for hiding this comment

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

How to pass selectionsLimit and hint text from viewController?

@ErAshu
Copy link

ErAshu commented Nov 17, 2017

How to pass selectionsLimit and hint text from viewController?

@bcylin
Copy link
Contributor

bcylin commented Nov 26, 2017

ImagePickerSelection.limit(to: selectionsLimit) is part of ImagePickerConfigurable. It's passed to the image picker controller via init(selectedAssets:configuration:).

Hint text is set via the hint attributed string.

@carouselljenkins
Copy link

carouselljenkins commented Jan 4, 2018

1 Error
🚫 Please rebase to get rid of the merge commits in this PR

Generated by 🚫 Danger

@shujin shujin merged commit 9065d10 into master Jan 4, 2018
@shujin shujin deleted the feature/example-limit-hint branch January 4, 2018 05:58
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.

5 participants