-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add optional customizable cancelBarButtonItem and doneBarButtonItem #11
Conversation
@darrenchen1223, can you review this pull request? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Can you rebase the master
branch to run the tests with these changes?
@@ -70,6 +70,10 @@ internal class CarousellImagePickerController: ImagePickerController { | |||
|
|||
private struct CarousellTheme: ImagePickerConfigurable { | |||
|
|||
let cancelBarButtonItem: UIBarButtonItem? = UIBarButtonItem(barButtonSystemItem: .stop, target: nil, action: nil) | |||
|
|||
let doneBarButtonItem: UIBarButtonItem? = UIBarButtonItem(title: "Next", style: .plain, target: nil, action: nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to use NSLocalizedString
like imagePicker.button.camera
? so we can later update the translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed that it's for the example app. It should be alright. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
var cancelBarButtonItem: UIBarButtonItem? { get } | ||
|
||
/// A custom bar button item displayed on the right (or trailing) edge of the navigation bar when the receiver is the top navigation item. | ||
var doneBarButtonItem: UIBarButtonItem? { get } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documented++
4cb36a8
to
b7d16ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add optional UIBarButtonItems in ImagePickerConfigurable to customise appearance of cancelBarButtonItem and doneBarButtonItem.