Skip to content

Commit

Permalink
Refactor [#242] StringLiterals 사용 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed Sep 20, 2023
1 parent c17d0cb commit d94f635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions YELLO-iOS/YELLO-iOS/Global/Literals/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 4 additions & 6 deletions YELLO-iOS/YELLO-iOS/Presentation/Inviting/InvitingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -75,7 +75,7 @@ final class InvitingView: BaseView {
}

recommender.do {
$0.text = "내 추천인 코드"
$0.text = StringLiterals.Inviting.myRecommendCode
$0.textColor = .purpleSub500
$0.font = .uiBody04
}
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit d94f635

Please sign in to comment.