-
Notifications
You must be signed in to change notification settings - Fork 6
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] #57 - 사진인증 플로우 및 케이스별 업로드페이지 구현 #69
Conversation
습관방 폴더링 및 SB, VC 생성
상수 추가 및 폴더링
어셋 추가
PhotoAuth SB 및 VC 추가
HabitAuth 레이아웃 및 UI 구성
HabitAuth 인증하기 버튼 기능 구현
액션시트 생성
AuthUpload SB, VC 추가
카메라 사용 및 앨범 활용 기능 구현
사진인증 후 이미지 받아오기, 화면전환
HabitAuthVC 주석작업
AuthUploadVC 필수 디자인 구성
AuthUploadVC 케이스별 디자인 구성
프로젝트 최신화
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.
고생하셨슴다💐
timerLabel.text = "00:30:12" | ||
timerLabel.font = .enBoldFont(ofSize: 40) | ||
timerLabel.textColor = .sparkWhite | ||
|
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.
여기는 저를 위한 친구인건가여? 감삼다
switch vcType | ||
{ | ||
case .cameraOnly: | ||
print("카메라") | ||
timerLabel.isHidden = true | ||
|
||
case .albumOnly: | ||
print("앨범") | ||
retakeButton.setTitle("다시 선택", for: .normal) | ||
timerLabel.isHidden = true | ||
|
||
case .cameraTimer: | ||
print("카메라타이머") | ||
|
||
case .albumTimer: | ||
print("앨범타이머") | ||
retakeButton.setTitle("다시 선택", for: .normal) | ||
} |
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.
cameraOnly와 cameraTimer는 어떤 경우에 쓰이는 부분인가여?..?
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.
일단 사진인증과 앨범인증에서 retakeButton의 텍스트가 다시 찍기와 다시 선택으로 달라요! 그리고 타이머가 있는 경우에 라벨이 보여야 하기 때문에 분기처리 해주었습니다
switch vcType | ||
{ | ||
case .cameraOnly: | ||
print("") | ||
|
||
case .albumOnly: | ||
print("") | ||
|
||
case .cameraTimer: | ||
print("") | ||
|
||
case .albumTimer: | ||
print("") | ||
} |
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.
나중을 위한 대비...로 뒀는데 의미없는것같네용
<key>NSPhotoLibraryUsageDescription</key> | ||
<string>test</string> | ||
<key>NSCameraUsageDescription</key> | ||
<string>test</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.
아요 선생님!~ test 부분에 들어갈 멘트가 픽스되어 말씀드립니다~!
카메라 인증시 : '사진을 촬영하여 첨부할 수 있습니다.'
앨범 인증시 : '사진을 선택하여 첨부할 수 있습니다.'
프로필 설정시에도 각각 동일한 멘트로 해주시면 될것 같아효~!
라고 슬랙에 답주셨네용 전달드립니당
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.
감사합니다 수정했어요!
|
||
// TODO: 고민중, 쉴래요 버튼 기능 구현 | ||
considerButton.setTitleColor(.sparkLightPinkred, for: .highlighted) | ||
considerButton.layer.borderColor = .init(_colorLiteralRed: 1, green: 137/255, blue: 165/255, alpha: 1) |
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.
uicolor 익스텐션한거 사용해주세여! sparkLightGray 인거 같네여!
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.
이상하게 보더컬러로 사용하면 안 불러와지네요.. 라고 생각했는데
considerButton.layer.borderColor = UIColor.sparkLightGray.cgColor
이렇게 하니까 잘 됩니다.. 감사합니당!
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.
😉
considerButton.layer.cornerRadius = 2 | ||
|
||
restButton.setTitleColor(.sparkLightPinkred, for: .highlighted) | ||
restButton.layer.borderColor = .init(_colorLiteralRed: 1, green: 137/255, blue: 165/255, alpha: 1) |
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.
이친구도요~
let library = UIAlertAction(title: "카메라 촬영", style: .default) { action in | ||
self.openCamera() | ||
} | ||
let camera = UIAlertAction(title: "앨범에서 선택하기", style: .default) { action in | ||
self.openLibrary() | ||
} |
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.
반영했습니다!
|
||
// MARK: - Properties | ||
|
||
var vcType: VCCase = .cameraTimer |
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.
추후에 수정할때는 cameraTimer 로 지정해주지 말구 데이터 전달받아서 switch 문에서 4가지 경우 다 포함해서 짜면 좋을거 같아여 지금은 뭐 다시찍기 이런것도 setUI() 에서 기본으로 지정하고 있는데 뒤에 스위치문에서 다시 지정하는 경우가 생길수도 있으니까여 @Frozen 👍
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.
리뷰 감사합니다 슨배들!!
<key>NSPhotoLibraryUsageDescription</key> | ||
<string>test</string> | ||
<key>NSCameraUsageDescription</key> | ||
<string>test</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.
감사합니다 수정했어요!
|
||
// TODO: 고민중, 쉴래요 버튼 기능 구현 | ||
considerButton.setTitleColor(.sparkLightPinkred, for: .highlighted) | ||
considerButton.layer.borderColor = .init(_colorLiteralRed: 1, green: 137/255, blue: 165/255, alpha: 1) |
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.
이상하게 보더컬러로 사용하면 안 불러와지네요.. 라고 생각했는데
considerButton.layer.borderColor = UIColor.sparkLightGray.cgColor
이렇게 하니까 잘 됩니다.. 감사합니당!
let library = UIAlertAction(title: "카메라 촬영", style: .default) { action in | ||
self.openCamera() | ||
} | ||
let camera = UIAlertAction(title: "앨범에서 선택하기", style: .default) { action in | ||
self.openLibrary() | ||
} |
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.
반영했습니다!
|
||
// MARK: - Properties | ||
|
||
var vcType: VCCase = .cameraTimer |
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 요약
🌱 작업한 브랜치
🌱 작업한 내용
📌 참고 사항
📸 스크린샷
📮 관련 이슈