-
Notifications
You must be signed in to change notification settings - Fork 677
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
First implementation #1
Conversation
Unable to run, check this issue: #2 |
// MARK: - Action methods | ||
|
||
func doneButtonDidPress(button: UIButton) { | ||
if button.currentTitle == self.configuration.cancelButtonTitle { |
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.
I may guess, you can remove self
button.setImage(self.getImage("flashIcon"), forState: .Normal) | ||
button.setTitle("AUTO", forState: .Normal) | ||
button.titleEdgeInsets = UIEdgeInsetsMake(0, 4, 0, 0) | ||
button.setTitleColor(UIColor(red:0.98, green:0.98, blue:0.45, alpha:1), forState: .Normal) |
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.
Probably, this may be extracted to properties, so they may be customized.
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.
I don't see that color to be customizable, it's the one by default in Apple.
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.
Then that's OK
Replace UIColor with .color()
…to feature/first-implementation
No description provided.