-
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
[Feat] UI구현 #1
base: main
Are you sure you want to change the base?
[Feat] UI구현 #1
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.
- 가현아 고생했어!!! 코드 잘썼네~~ 잘했음!
- 디자인 너무 귀엽다 근데 ㅋ
case subtract = "\u{2212}" | ||
case add = "\u{002B}" | ||
case divide = "\u{00F7}" | ||
case multiply = "\u{00D7}" | ||
case equal = "=" | ||
case clear = "AC" | ||
case decimal = "." | ||
case percent = "%" | ||
case negative = "\u{002B}/-" |
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.
- 오!! 이부분 유니코드로 한 이유가 어떤 이유야??
|
||
import SwiftUI | ||
|
||
enum CalculatorButton: String { |
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.
- enum 활용한거 너무 좋다!
var body: some View { | ||
VStack { | ||
Spacer() | ||
ForEach(buttons, id: \.self) { button in |
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.
- 오 코드 너무 깔끔하게 잘썼다! 잘했어 !!!
- 다음주에는 이 코드를 외부로 빼보고, body에서는 아무나 읽어도 뷰계층이 예상되게 구현해보면 더 좋은 코드가 될 것 같아 !!!! :) 이미 충분히 잘했네!
🔥Pull requests
👷 작업한 내용
🚨 참고 사항
📸 스크린샷
참고한 자료