Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions Eatery Blue/UI/EateryScreen/MenuHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,17 @@ class MenuHeaderView: UIView {
private func setUpButtonImageView() {
buttonView.backgroundColor = UIColor.Eatery.gray00
buttonView.layer.cornerRadius = 21
buttonView.layoutMargins = UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 16)
buttonView.layoutMargins = UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 14)
let imageView = UIImageView()
imageView.image = UIImage(named: "EateryCalendar")
imageView.contentMode = .center

buttonView.addSubview(imageView)
imageView.snp.makeConstraints { make in
make.width.height.equalTo(36)
make.leading.equalTo(buttonView.layoutMarginsGuide)
make.centerY.equalTo(buttonView)
}

let titleLabel = UILabel()
titleLabel.text = "Change Date"
Expand All @@ -73,18 +83,8 @@ class MenuHeaderView: UIView {

buttonView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.trailing.equalTo(buttonView.layoutMarginsGuide)
make.centerY.equalTo(buttonView)
}

let imageView = UIImageView()
imageView.image = UIImage(named: "EateryCalendar")
imageView.contentMode = .center

buttonView.addSubview(imageView)
imageView.snp.makeConstraints { make in
make.width.height.equalTo(40)
make.leading.equalTo(buttonView.layoutMarginsGuide)
make.leading.equalTo(imageView.snp.trailing)
make.trailing.lessThanOrEqualTo(buttonView.layoutMarginsGuide)
make.centerY.equalTo(buttonView)
}

Expand All @@ -102,6 +102,7 @@ class MenuHeaderView: UIView {
private func setUpConstraints() {
titleLabel.snp.makeConstraints { make in
make.top.leading.equalTo(layoutMarginsGuide)
make.trailing.lessThanOrEqualTo(buttonView.snp.leading)
}

subtitleLabel.snp.makeConstraints { make in
Expand Down
2 changes: 1 addition & 1 deletion Eatery Blue/UI/HomeScreen/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class HomeViewController: UIViewController {
collectionView.backgroundColor = UIColor.Eatery.surface
collectionView.contentInsetAdjustmentBehavior = .never
collectionView.delegate = self
collectionView.contentInset.bottom = tabBarController?.tabBar.frame.height ?? 0
collectionView.contentInset.bottom = (tabBarController?.tabBar.frame.height ?? 0) + 25 // 108
collectionView.showsVerticalScrollIndicator = false

collectionView.register(
Expand Down
Loading