-
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
Feature/actual camera #7
Conversation
let view = UIView() | ||
view.setTranslatesAutoresizingMaskIntoConstraints(false) | ||
view.backgroundColor = self.configuration.backgroundColor | ||
self.addSubview(view) |
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.
Better to add subviews in ViewDidLoad, so the views would not be added ocassionally, when you just want to access them.
@@ -53,7 +53,7 @@ class ButtonPicker: UIButton { | |||
// MARK: - Configuration | |||
|
|||
func setupButton() { | |||
backgroundColor = .whiteColor() | |||
backgroundColor = UIColor.whiteColor() |
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.
What's wrong with .whiteColor()
😃
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.
Oh, probably I changed it to something else and then put white color again! 💃
@RamonGilabert Overall looks good for me. Nice work man! Is everything ready to merge? |
@vadymmarkov I'm changing 3 things right now and it's going to be ready to merge and use! :) |
imageWrapper.firstImageView.image = array[0] as? UIImage | ||
imageWrapper.secondImageView.image = array[1] as? UIImage | ||
imageWrapper.firstImageView.image = array[1] as? UIImage | ||
imageWrapper.secondImageView.image = array[0] as? UIImage |
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.
array.first can be used here
No description provided.