-
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
[Fix] #223 - 다이얼로그 '허용' 선택 후 토글 오류 수정 #224
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.
고생하셨습미당~
@@ -45,13 +45,15 @@ public final class KeychainUtil { | |||
static func getAppleEmail() -> String { | |||
UserDefaults.standard.string(forKey: DefaultKeys.appleEmail) ?? "연동된 이메일 정보가 없습니다" | |||
} | |||
|
|||
static func getBool(_ key: String) -> Bool { |
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.
프로퍼티가 추가되면 계속 함수가 추가되는 구조라 제네릭을 이용한 Keychain 관련 Util을 만들어봐도 좋을것 같아요 ㅎ.ㅎ
나중에 시간나면 같이 만들어봐여,,
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.
오 좋습니다!! 이번 리팩 때 이 부분도 수정해보아요 , ,
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.
놓치고 있었던 final
,,, ㅎㅎㅎ 감사함돵 >< 🍎
🫧 작업한 내용
🔫 PR Point
getBool(_ key: String)
를 만들어보았습니다. 이렇게 하면 가독성이 더 좋을 것 같아서요!또한 기존에
UserDefault.standard.bool
로 접근하던 것을 모두 해당 함수로 변경했습니다. 공통 알림 모달 구현에도 같은 로직이 사용되는데 getBool로 바꾸시는거 어떠신가요?_?📸 스크린샷
📮 관련 이슈