Skip to content

Commit

Permalink
refactor: JuiceName, FruitName 요소 언어 한글 -> 영어로 수정 #1
Browse files Browse the repository at this point in the history
- xcode의 오류로 인한 종료의 문제가 발생하여 언어 변경
  • Loading branch information
ICS-Asan committed Oct 19, 2021
1 parent bf943fb commit a5ebe9d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions JuiceMaker/JuiceMaker/Model/FruitStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ struct Fruit {
var count: Int = 10

enum FruitName {
case 딸기 // rawValue String?
case 바나나
case 파인애플
case 키위
case 망고
case strawberry // rawValue String?
case banana
case pineapple
case kiwi
case mango
}
}

Expand All @@ -37,11 +37,11 @@ class FruitStore {
}

var inventory: [Fruit] = [
Fruit(name: .딸기),
Fruit(name: .바나나),
Fruit(name: .파인애플),
Fruit(name: .키위),
Fruit(name: .망고)
Fruit(name: .strawberry),
Fruit(name: .banana),
Fruit(name: .pineapple),
Fruit(name: .kiwi),
Fruit(name: .mango)
]

func findIndexFromInventory(with fruit: Fruit.FruitName) throws -> Int {
Expand Down
14 changes: 7 additions & 7 deletions JuiceMaker/JuiceMaker/Model/JuiceMaker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ struct Juice {
var count: Int = 0

enum JuiceName {
case 딸기쥬스
case 바나나쥬스
case 키위쥬스
case 파인애플쥬스
case 딸바쥬스
case 망고쥬스
case 망고키위쥬스
case strawberryJuice
case bananaJuice
case kiwiJuice
case pineappleJuice
case strawberryBananaJuice
case mangoJuice
case mangoKiwiJuice
}
}

Expand Down

0 comments on commit a5ebe9d

Please sign in to comment.