-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/동봉된 사진 확대 및 저장 #255
Conversation
…Kabinett into Refactor/LetterBoxView
…Kabinett into Refactor/LetterBoxView
…Kabinett into Refactor/LetterBoxView # Conflicts: # Kabinett/Presentation/View/LetterBox/Components/ContentRectangleView.swift # Kabinett/Presentation/View/LetterBox/LetterBoxDetailView.swift # Kabinett/Presentation/View/LetterBox/LetterBoxView.swift
This reverts commit b4c6d9f.
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.
고생하셨습니다
이제 사진도 저장할 수 있게되었군요 . . .
func savePhotoToAlbum() { | ||
guard let url = URL(string: photoUrl) else { return } | ||
URLSession.shared.dataTask(with: url) { data, response, error in | ||
if let data = data, let image = UIImage(data: data) { | ||
DispatchQueue.main.async { | ||
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil) | ||
} | ||
} else { | ||
print("사진을 불러오지 못했습니다.", error?.localizedDescription ?? "알 수 없는 오류") | ||
} | ||
}.resume() | ||
} |
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.
콜백기반의 비동기처리보다는 Swift Concurrency나 Combine을 통한 비동기 처리를 권장드려요
이 방식은 이제 잘 안쓰여요... Swift Concurrency 소개할 때, 콜백기반의 비동기 처리가 왜 안좋은지 설명을 하니, 한번 참고해보시면 좋겠습니다.
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.
마구잡이로 코딩하지 않게 알려주셔서 감사해요 . . 기억두겠습니닷 ✍🏻
신속정확하심니다 . . 확대도 되고 저장도 된다니 초초초 필수기능이 생겼자나~~ 짱이어요 .. |
📕 Issue Number
Close #254
📙 작업 내역
📘 작업 유형
📋 체크리스트
📝 PR 특이 사항
헉. Dev에서 브랜치를 만든게 아니고 아직 Dev에 머지되지 않은 제 브랜치에서 생성해서 커밋이 조금 많아 보이네요.
Feat: PhotoDetailView 생성
부터 보면 된답니다..📱 서비스 화면