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

쥬스메이커 [STEP 3] 제이티, Ari #135

Closed
wants to merge 29 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3d2a6da
feat: 재고수정 화면 진입시 Label, Stepper의 Value 연동 기능 구현
leeari95 Nov 1, 2021
1e85463
feat: FruitStore에서 Label과 Stepper의 값 연동 및 Stepper 터치 시 Label 값 변환 구현
HoneyCoding Nov 1, 2021
df7531a
feat: Stepper를 클릭시 재고가 계산되도록 기능 구현
leeari95 Nov 2, 2021
23a4bdc
fix: FruitStore의 잘못된 조건문 수정
HoneyCoding Nov 2, 2021
febd113
fix: 재고 부족시 재고수정으로 넘어갈 때 Label 반영 안되는 버그 수정
leeari95 Nov 2, 2021
bd2ac42
refactor: JuiceMakerViewController의 중복 코드를 빼주어 메소드 setupNextViewLabel…
HoneyCoding Nov 2, 2021
9b545cf
refactor: stepperTapped 내부 가독성을 위해 fruitLabelText 메소드 추가하여 리팩토링
leeari95 Nov 2, 2021
e71fa4f
fix: Storyboard에서 JuiceMakerViewController Scene의 Content Priority 충돌…
HoneyCoding Nov 2, 2021
b9d4c03
fix: Button titleLabel이 버튼의 너비에 fit되도록 설정, 글꼴 자동 업데이트 설정
leeari95 Nov 2, 2021
4864c3c
refactor: JuiceMakerViewController의 코드를 extension을 사용해 분리
HoneyCoding Nov 2, 2021
93bf54e
refactor: FruitStoreViewController 내부 extension으로 분리
leeari95 Nov 2, 2021
484a0a1
fix: Storyboard의 Stepper와 연결된 stepperTapped 메소드의 Sent Events 변경
HoneyCoding Nov 2, 2021
2b397db
chore: 의미없는 줄바꿈과 프로퍼티 삭제
leeari95 Nov 2, 2021
1fec18c
chore: 기존 코드에서 오버 스펙으로 구현한 부분 제거
HoneyCoding Nov 2, 2021
da64fc6
docs: README.md 파일 내부에 STEP 3 관련 내용 추가
leeari95 Nov 2, 2021
ccb8a10
docs: README.md 파일 수정하다가 빠진 STEP 2 내용 다시 추가
leeari95 Nov 2, 2021
ae7582e
refactor: 메소드 네이밍 동사로 시작하도록 수정
HoneyCoding Nov 4, 2021
3a3c801
docs: READMD.md 파일 내용 추가
leeari95 Nov 4, 2021
82c2aa5
refactor: chooseCalculator 메소드 내에서 switch 문 사용을 if 문 사용으로 수정
HoneyCoding Nov 4, 2021
119b6d6
refactor: currentStockLabelUpdate 메소드 이름을 동사로 수정
leeari95 Nov 4, 2021
288fe58
refactor: JuiceMakerViewController, JuiceMaker, FruitStore 리팩토링
HoneyCoding Nov 5, 2021
d8f244d
refactor: 기존에 Singleton 패턴을 삭제
leeari95 Nov 5, 2021
ba4de9c
feat: UIButton에 extension을 통해 메소드 추가 및 기존 코드 일부 수정
HoneyCoding Nov 5, 2021
6a7ae09
refactor: fruitLabelChanged 메소드 이름을 fruitStockChanged로 수정
leeari95 Nov 5, 2021
dc428fe
feat: FruitStoreViewController가 deinit될 때 Notification 제거 코드 추가
HoneyCoding Nov 5, 2021
981c869
docs: README.md 내부 개선사항 내용 추가
leeari95 Nov 5, 2021
abef023
docs: README.md 수정
leeari95 Nov 5, 2021
827e98b
docs: README.md 내부 수정
leeari95 Nov 5, 2021
4809668
docs: README.md 내부 오타와 UML 이미지 수정
leeari95 Nov 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: 기존 코드에서 오버 스펙으로 구현한 부분 제거
  • Loading branch information
HoneyCoding committed Nov 2, 2021
commit 1fec18c0442b3b7eb358ee387be3fa080dda334f
14 changes: 2 additions & 12 deletions JuiceMaker/JuiceMaker/Model/Text.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,11 @@ enum Text {
case ok

var title: String {
return localizedTitle(key: self.key)
}

private var key: String {
switch self {
case .cancel:
return "Cancel"
return "취소"
case .ok:
return "OK"
return "확인"
}
}

private func localizedTitle(key: String) -> String {
let bundle = Bundle.init(for: UIButton.self)
let title = bundle.localizedString(forKey: key, value: nil, table: nil)
return title
}
}