Skip to content

Commit

Permalink
fix/#227 홈 레이아웃 깨진 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaybei committed Jul 18, 2024
1 parent fb42554 commit 212b654
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion KkuMulKum/Source/Home/View/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ final class HomeView: BaseView {

promiseView.snp.makeConstraints {
$0.leading.trailing.equalToSuperview()
$0.height.equalTo(646)
$0.height.equalTo(Screen.height(630))
$0.top.equalToSuperview().offset(396)
$0.bottom.equalTo(contentView)
}
Expand Down
8 changes: 4 additions & 4 deletions KkuMulKum/Source/Home/ViewController/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class HomeViewController: BaseViewController {
override func viewDidLoad() {
super.viewDidLoad()

view.backgroundColor = .white
view.backgroundColor = .maincolor
register()

updateUI()
Expand Down Expand Up @@ -172,9 +172,9 @@ extension HomeViewController: UICollectionViewDataSource {

extension HomeViewController: UIScrollViewDelegate {
func scrollViewDidScroll(_ scrollView: UIScrollView) {
if rootView.scrollView.contentOffset.y < 0 {
rootView.scrollView.contentOffset.y = 0
}
// if rootView.scrollView.contentOffset.y < 0 {
// rootView.scrollView.contentOffset.y = 0
// }

let maxOffsetY = rootView.scrollView.contentSize.height - rootView.scrollView.bounds.height
if rootView.scrollView.contentOffset.y > maxOffsetY {
Expand Down

0 comments on commit 212b654

Please sign in to comment.