From bee5bf4e64a2cc0e46f5f9084c864eb20a8f04e5 Mon Sep 17 00:00:00 2001 From: LeeSeungmin <dltmdals0608@naver.com> Date: Mon, 11 Mar 2024 20:34:43 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20tableview=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A1=A4=EB=90=98=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - datasource의 변경 애니메이션 막음. => 이유는 모르겠음 - gradView 내부 제약조건 수정 --- .../TabBar/MyPage/View/MyPageTableViewCell.swift | 2 +- .../TabBar/MyPage/View/MyPageViewController.swift | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageTableViewCell.swift b/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageTableViewCell.swift index 3fa4e00..2184f2f 100644 --- a/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageTableViewCell.swift +++ b/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageTableViewCell.swift @@ -63,6 +63,6 @@ final class MyPageTableViewCell: UITableViewCell { titleLabel.text = item.title if let count = item.count { countLabel.text = "\(count)" - } + } else { countLabel.text = nil } } } diff --git a/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageViewController.swift b/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageViewController.swift index 8fadc5b..cd3f74f 100644 --- a/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageViewController.swift +++ b/Nagaza/Sources/Presentation/Feature/TabBar/MyPage/View/MyPageViewController.swift @@ -167,22 +167,21 @@ final class MyPageViewController: NagazaBaseViewController { } gradeView.snp.makeConstraints { make in - make.top.equalTo(contentsLabel.snp.bottom).offset(13) + make.top.equalTo(profileImageView.snp.bottom).offset(24) make.directionalHorizontalEdges.equalToSuperview().inset(25) make.height.equalTo(56) } gradeImageView.snp.makeConstraints { make in - make.size.equalTo(40) + make.width.equalTo(40) make.leading.equalToSuperview().inset(15) - make.trailing.equalTo(gradeInfoLabel.snp.leading).offset(-10) make.centerY.equalToSuperview() - make.top.equalToSuperview().inset(10) } gradeInfoLabel.snp.makeConstraints { make in - make.centerY.equalToSuperview() + make.leading.equalTo(gradeImageView.snp.trailing).offset(10) make.trailing.equalTo(gradeInfoImageView.snp.leading).offset(-10) + make.centerY.equalToSuperview() } gradeInfoImageView.snp.makeConstraints { make in @@ -222,7 +221,7 @@ final class MyPageViewController: NagazaBaseViewController { } } - this.dataSource.apply(snapshot) + this.dataSource.apply(snapshot, animatingDifferences: false) } .disposed(by: disposeBag) }