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

Feat [#50] 투명도 퍼센트에 따른 UI 변경 완료 #53

Merged
merged 3 commits into from
Jan 13, 2024

Conversation

boogios
Copy link
Member

@boogios boogios commented Jan 13, 2024

👻 PULL REQUEST

💻 작업한 내용

  • 투명도 퍼센트에 따른 UI 변경 완료

📸 스크린샷

기능 스크린샷
GIF

📟 관련 이슈


private func setDataBind() {

}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래는 코드 패치에 대한 간단한 코드 리뷰입니다. 버그 위험 및 개선 제안 사항을 환영합니다:

  • transparencyValuelet 상수로 선언하고 기본값 -85로 설정했습니다.
  • userIntroduction 라벨에 label.setTextWithLineHeight 메서드를 사용하여 텍스트를 설정하고, 정렬 옵션 .center를 추가했습니다.
  • emptyTransparencyPercentagefullTransparencyPercentage 이미지 뷰의 contentMode.left로 변경했습니다.
  • emptyTransparencyPercentagefullTransparencyPercentage 이미지 뷰에 clipsToBounds, layer.cornerRadius, layer.masksToBounds 속성을 추가하여 모서리를 둥글게 처리했습니다.
  • setAddTargetsetRegisterCell 메서드는 비어 있으므로 삭제할 수 있습니다.
  • setUI 메서드에서 backgroundColor.donBlack으로 설정했습니다.
  • transparencyLabel.textself.transparencyValue 값을 텍스트로 설정했습니다.

기타 코드 리뷰는 주어진 코드 스니펫에서 파악하기 어렵습니다. 전체 클래스와 관련된 다른 부분도 고려되어야 합니다.

Copy link
Collaborator

@Heyjooo Heyjooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳!

Comment on lines +70 to +73
imageView.contentMode = .left
imageView.clipsToBounds = true
imageView.layer.cornerRadius = 5.adjusted
imageView.layer.masksToBounds = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ하..ㅜㅜ수고하셨습니다


let statusBarView = UIView(frame: UIApplication.shared.statusBarFrame)
statusBarView.backgroundColor = UIColor.donBlack // 적절한 색상으로 변경 가능
view.addSubview(statusBarView)

let image = ImageLiterals.MyPage.icnMenu
let renderedImage = image.withRenderingMode(.alwaysOriginal)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 코드 패치는 MyPageViewController 클래스의 setUI() 메서드에 대한 수정입니다.

개선 제안:

  1. 뷰의 배경색을 설정하는 줄이 추가되었습니다. donBlack 색상을 사용하고 있는데, 이 색상은 코드에서 어디에 정의되어 있는지 확인해야 합니다.
  2. 탭 바의 투명성 설정과 네비게이션 바의 속성들이 변경되었습니다. 이러한 변경은 UI 스타일에 따라 다른 의도를 가질 수 있으므로, 주의가 필요합니다. 기존 스타일과 일치하는지 확인해야 합니다.
  3. 상태 바의 배경색을 설정하는 부분이 추가되었습니다. 마찬가지로 donBlack 색상을 사용하고 있는데, 적절한 색상으로 변경할 수 있습니다.

버그 위험:
장기적인 버그 위험이나 잠재적인 오류는 보이지 않습니다. 그러나 donBlack 색상이 어떻게 정의되어 있는지, 적합한지 확인해야 합니다.

전반적으로 코드 작성자의 의도와 스타일 가이드를 고려해 적절한 수정이 필요할 수 있습니다.

@Heyjooo Heyjooo self-requested a review January 13, 2024 17:06
@boogios boogios merged commit 73be122 into develop Jan 13, 2024
1 check passed
@boogios boogios deleted the feat/#50-transparency branch January 13, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 마이페이지 투명도 값에 따른 뷰 변경
2 participants