diff --git a/YELLO-iOS/YELLO-iOS/Global/Literals/String.swift b/YELLO-iOS/YELLO-iOS/Global/Literals/String.swift index 99feb8c2..1a7052f1 100644 --- a/YELLO-iOS/YELLO-iOS/Global/Literals/String.swift +++ b/YELLO-iOS/YELLO-iOS/Global/Literals/String.swift @@ -82,6 +82,8 @@ enum StringLiterals { static let firstText = "친구가 내 추천인 코드로 가입하면" static let secondText = "40분 대기 초기화 + 100포인트 지급!" static let toastMessage = "링크가 복사되었습니다." + static let close = "닫기" + static let myRecommendCode = "내 천인 코드" } enum Recommending { diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Inviting/InvitingView.swift b/YELLO-iOS/YELLO-iOS/Presentation/Inviting/InvitingView.swift index ceb7c03a..91c8b871 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Inviting/InvitingView.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Inviting/InvitingView.swift @@ -41,7 +41,7 @@ final class InvitingView: BaseView { contentsView.backgroundColor = .white closeButton.do { - $0.setTitle("닫기", for: .normal) + $0.setTitle(StringLiterals.Inviting.close, for: .normal) $0.setImage(ImageLiterals.InvitingPopUp.icClose, for: .normal) $0.setTitleColor(.grayscales600, for: .normal) $0.imageView?.contentMode = .scaleAspectFit @@ -75,7 +75,7 @@ final class InvitingView: BaseView { } recommender.do { - $0.text = "내 추천인 코드" + $0.text = StringLiterals.Inviting.myRecommendCode $0.textColor = .purpleSub500 $0.font = .uiBody04 } @@ -169,14 +169,12 @@ final class InvitingView: BaseView { extension InvitingView { - @objc - func closeButtonClicked() { + @objc func closeButtonClicked() { self.isHidden = true self.removeFromSuperview() } - @objc - func kakaoButtonClicked() { + @objc func kakaoButtonClicked() { let templateId = Config.kakaoTempleteId guard let filteredString = self.recommenderID.text else { return }