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 collection view for menu view #25
Conversation
|
||
// MARK: Constraint setup | ||
private func setUpConstraints() { | ||
let leadingOffset: CGFloat = 24 |
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.
might want to put constants at the top along with view vars
Merged with master and updated design |
SwiftLint found issuesWarnings
Generated by 🚫 Danger |
} | ||
|
||
private func loadMenu() { | ||
// TODO: get menu from endpoint |
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.
TODOs should be resolved (get menu from endpoint).todo MenuViewController.swift:63 |
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.
lgtm
var bottomSeparator: UIView! | ||
|
||
// var additionalPricingLabel: UILabel! | ||
// var selectButton: UIButton! |
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.
remove if unnecessary
// selectButton.setTitle("Select", for: .normal) | ||
// selectButton.backgroundColor = UIColor(red: 1.0, green: 156.0 / 255.0, blue: 29.0 / 255.0, alpha: 1.0) | ||
// selectButton.tintColor = .white | ||
// contentView.addSubview(selectButton) |
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.
remove if unnecessary
let imageViewWidthHeight: CGFloat = 64 | ||
let imageViewStackViewHorizontalSpacing: CGFloat = 24 | ||
let bottomSeparatorHeight: CGFloat = 1.0 | ||
// let stackViewSelectButtonHorizontalSpacing: CGFloat = 17 |
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.
remove if unnecessary
make.leading.equalTo(imageView.snp.trailing).offset(imageViewStackViewHorizontalSpacing) | ||
make.centerY.equalToSuperview() | ||
make.trailing.equalToSuperview().inset(trailingInset) | ||
// make.trailing.equalTo(selectButton.snp.leading).offset(-stackViewSelectButtonHorizontalSpacing) |
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.
same
// selectButton.snp.makeConstraints { make in | ||
// make.trailing.equalToSuperview().inset(trailingInset) | ||
// make.width.equalTo(selectButtonWidth) | ||
// make.centerY.equalToSuperview() |
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.
same
e53df02
to
aed0c91
Compare
Resolves #8