-
Notifications
You must be signed in to change notification settings - Fork 0
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
스플래시 화면 구현 #11
스플래시 화면 구현 #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
피드백 반영 부탁드립니다.
} | ||
} | ||
let hexFormatted = hex.trimmingCharacters(in: .whitespacesAndNewlines).replacingOccurrences(of: "#", with: "") | ||
guard hexFormatted.count == 6, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integer의 경우, 리터럴을 코드 내에서 바로 사용하게 되면 가독성 및 인지 오류의 문제가 야기됩니다. 가급적 정적상수로 선언하거나 enum 하위 항목으로 정의해서 상수 형태로 사용하는 습관을 들여주시길 권장합니다
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { | ||
self.router?.pushToContentsView() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'2'라는 리터럴이 의미하는 바가 코드 내에서 모호하기 때문에, 보다 분명하게 정의할 수 있도록 splashFreezeMargin
과 같은 상수를 정의하여 사용하는 편이 좋습니다.
스플래시 화면(인트로) 구현 완료 하였습니다.