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

Feature/actual camera #7

Merged
merged 30 commits into from
Aug 6, 2015
Merged

Feature/actual camera #7

merged 30 commits into from
Aug 6, 2015

Conversation

RamonGilabert
Copy link
Contributor

No description provided.

let view = UIView()
view.setTranslatesAutoresizingMaskIntoConstraints(false)
view.backgroundColor = self.configuration.backgroundColor
self.addSubview(view)
Copy link
Contributor

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()
Copy link
Contributor

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() 😃

Copy link
Contributor Author

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! 💃

@vadymmarkov
Copy link
Contributor

@RamonGilabert Overall looks good for me. Nice work man! Is everything ready to merge?

@RamonGilabert
Copy link
Contributor Author

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

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

richardtop added a commit that referenced this pull request Aug 6, 2015
@richardtop richardtop merged commit 6c96fdc into master Aug 6, 2015
@richardtop richardtop deleted the feature/actual-camera branch August 6, 2015 15:51
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