-
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/#5] 탭바 UI 생성 #7
Conversation
아이쿠 이미지가 깨져요..ㅜㅜ Readme 줄바꿈 해주세요! |
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.
PR 제목도 규칙에 맞춰서 바꿔주세요~
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.
음 저라면
TabView의 tabItem을 써서 구현하지 않고
따로 뷰를 만들 것 같아요!
피그마에 새롭게 디자인 업데이트 되었는데,
그거 반영해서 다시 작업 부탁드려요~
그리고 main에 디자인시스템 올라갔어요
풀 받고 리소스 이용해서 구현해주세요!
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.
전체적으로 피그마랑 탭바의 높이, 간격 등 레이아웃, 폰트 사이즈 등이 많이 다른데
피그마 보면서 작업 부탁드려요!
이걸 커밋을 안 하고 있었어서 커밋합니다...!
피드백 반영하여 custom 탭바 UI로 만들었습니다!
탭 높이, 간격, 폰트 사이즈 등 수정했습니다
24cf0c2
to
2e28031
Compare
색상 등 수정했습니다
중복된 코드 때문에 충돌이 일어나서 수정했습니다
Assets 파일에서 계속 오류가 나서 기존 파일 삭제 후 다시 복사, 붙여넣기로 해결했습니다
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.
작업하면서 빌드 오류가 발생하지 않았나요?
Tab 뒤에 스페이스랑
Rectangle()에 foregroundStyle 모디파이어 색상,
불필요한 ZStack
등등...
아직 수정이 안되었는데 확인해주세요!
dorundorun/dorundorun/Assets.xcassets/AppIcon.appiconset/Contents.json
Outdated
Show resolved
Hide resolved
경로 변경 용도
띄어쓰기, 줄바꿈 등 수정하고 모디파이어로 색상 수정했습니다! Presentation 디렉토리로 경로도 옮겼습니다.
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.
여전히 빌드 오류 있습니다
다시 한번 코멘트 확인해주세요 !
DesignSystem 파일 아래로 이동했습니다!
TabbarView에서 ButtonView, CustomTabView 분할했습니다
알려주신대로 Assets 파일 DesignSystem롤 이동했습니다! |
dorundorun/dorundorun/DesignSystem/Fonts/Assets.xcassets/Contents.json
Outdated
Show resolved
Hide resolved
.font(.custom("SUIT", size: 10)) | ||
.foregroundStyle(isSelected ? Color.primary200 : Color.neutral600) | ||
} | ||
.offset(y: -15) |
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.
여기에 offset을 둔 이유가 있을까요?
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.
눈으로 봤을 때 아이콘들이 너무 아래로 치우쳐진 것 같아서 넣어뒀었는데 코드 수정하다보니 전처럼 아예 아래로 치우치는 느낌이 없어져서 삭제했습니다!
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.
다시 보니까 프로토타입에 비해서는 확실히 아래로 치우치는 느낌이 있어서 padding을 넣었습니다
re-request 요청 보낼테니 한 번만 확인 부탁드려요...!!
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.
offset은 화면에 렌더링할 때만 이동시키는 역할을 해줘요
즉, 뷰의 원래 프레임은 변하지 않고, 화면에 보이는 위치만 이동하거등요!!
특히 버튼과 같은 아이들.. 상호작용이 있는 것들의
실제 뷰 레이아웃 위치를 변경하려면 offset보다는
padding, frame 등을 사용하는게 좋다고 생각합니다 !
Image(imageName) | ||
.renderingMode(.template) | ||
.foregroundStyle(isSelected ? Color.primary200 : Color.neutral500) | ||
.padding(.vertical, 7) |
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.
사소한 부분이지만, 여기 역시 피그마랑 레이아웃이 좀 달라요!
아이콘이랑 글자 사이 간격이 있잖아요 !
여기 패딩을 주고 싶다면....
아래에 패딩이 필요하니까...
저라면 .padding(.bottom, 9)로 둘 거 같아요 !
참고만 해주세요~
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.
이거 확인하면서 피그마에 있는 디자인이 살짝 대칭이 안맞는거 발견해서...
디자이너님께 요청해서 수정했어요!
패딩 확인하시면서 다시 한번 봐주세요!
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.
@agseou 최대한 피그마 확인하면서 padding 넣고 수치 맞춰봤습니다...
번거로우시겠지만 re-request 요청 보낼테니 한 번만 확인 부탁드려요!
늘 감사합니다!
Assets파일을 Fonts에서 빼오는 과정에서 Assets2파일이 생겨서 해당 부분 수정했습니다!
적용이 안 되어 있어서 재적용합니다...
dorundorun/dorundorun/Assets.xcassets/AppIcon.appiconset/Contents.json
Outdated
Show resolved
Hide resolved
.font(.custom("SUIT", size: 10)) | ||
.foregroundStyle(isSelected ? Color.primary200 : Color.neutral600) | ||
} | ||
.offset(y: -15) |
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.
눈으로 봤을 때 아이콘들이 너무 아래로 치우쳐진 것 같아서 넣어뒀었는데 코드 수정하다보니 전처럼 아예 아래로 치우치는 느낌이 없어져서 삭제했습니다!
.font(.custom("SUIT", size: 10)) | ||
.foregroundStyle(isSelected ? Color.primary200 : Color.neutral600) | ||
} | ||
.offset(y: -15) |
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.
다시 보니까 프로토타입에 비해서는 확실히 아래로 치우치는 느낌이 있어서 padding을 넣었습니다
re-request 요청 보낼테니 한 번만 확인 부탁드려요...!!
Image(imageName) | ||
.renderingMode(.template) | ||
.foregroundStyle(isSelected ? Color.primary200 : Color.neutral500) | ||
.padding(.vertical, 7) |
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.
@agseou 최대한 피그마 확인하면서 padding 넣고 수치 맞춰봤습니다...
번거로우시겠지만 re-request 요청 보낼테니 한 번만 확인 부탁드려요!
늘 감사합니다!
#Preview { | ||
CustomTabView(selectedTab: .constant(.home)) | ||
} |
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.
지금 이 파일에서 @Binding
을 쓰고 있잖아요!
혹시 @Binding
이 필요한 이유에 대해 공유해주실 수 있나요?
@@ -31,7 +31,7 @@ struct TabbarView: View { | |||
myPageView() | |||
} | |||
CustomTabView(selectedTab: $seletedTab) | |||
.frame(width: 393, height: 92) | |||
.frame(maxWidth: .infinity) |
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.
이부분에서 height: 92 로 맞췄을 때 Extra argument 'height' in call 오류가 발생해서 CustomTabView에서 높이 맞춰줬습니다!
@@ -56,6 +56,7 @@ struct CustomTabView: View { | |||
.frame(width: 300, height: 55) | |||
.padding(.vertical, 15) | |||
} | |||
.frame(height: 92) |
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.
이 부분에 height를 추가해서 높이를 맞추고 TabbarView에서 maxWidth를 .infinity로 설정했습니다!
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.
고생하셨습니다!
피드백 열심히 해주시고 리뷰 열심히 봐주셔서 정말 감사합니다...!!! |
🛠 변경 사항 Changes
💬 기타 참고 사항
🔗 관련 이슈 Related issues
closes #5
📸 스크린샷 (선택 사항)