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

[Improvement] 누락된 규칙 추가 #9

Merged
merged 1 commit into from
Jun 3, 2023

Conversation

bonoogi
Copy link
Contributor

@bonoogi bonoogi commented Jun 2, 2023

실제로 컨벤션으로 적용되어 함께 리뷰에 적용하고 있으나 가이드 문서에는 누락되어있는 규칙을 추가합니다.
추가한 규칙은 다음과 같습니다.

  • Snapkit 사용시 equalToSuperview 사용
  • 동적으로 레이아웃 조절할 때 Constraint 변수 따로 빼지 않고 그냥 해당 뷰에 updateConstraints 호출하기
  • super 함수 호출시 아래에 빈 줄 추가
  • 복수의 Subview 추가시 addSubviews, addArrangedSubviews 함수 사용
  • 자주 쓰이는 값에 대해 체크할 때 확장 함수 사용하기(isNil, isNotNil ...)
  • RxSwift 스케쥴러 지정 규칙
  • VIPER 모듈 사이의 완료 콜백을 보낼때 클로져대신 옵저버블을 전달하기

이거 외에도 더 있긴 할 것 같은데 지금 가장 명확하게 쓰이는 거는 이정도인것 같습니다. 혹시 제가 놓친게 있으면 말씀주세요!

Copy link
Collaborator

@jam0128 jam0128 left a comment

Choose a reason for hiding this comment

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

감사합니다!!

Copy link

@ghis22130 ghis22130 left a comment

Choose a reason for hiding this comment

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

챙겨주셔서 감사합니다!

Copy link
Member

@heoblitz heoblitz left a comment

Choose a reason for hiding this comment

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

작업 감사합니다!!

@jam0128 jam0128 merged commit 0ac7233 into channel-io:master Jun 3, 2023
@bonoogi bonoogi deleted the improvement/add_rules branch June 5, 2023 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants