-
Notifications
You must be signed in to change notification settings - Fork 5
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: 덕질 명함 생성 뷰 구현 (#449) #458
Conversation
- digging->fan - job->company 로 변경. 서버 네이밍과 통일하였습니다.
- 인스타그램/트위터 활성, 비활성화 이미지 에셋 추가.
- 인스타그램/트위터 아이콘.
- 인스타그램, 트위터 모두 앱/웹 잘 열림.
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.
@objc | ||
private func tapSNSLabel() { | ||
let appURL: URL? | ||
let webURL: URL? | ||
|
||
if cardData?.instagram != nil { | ||
let instagramID = snsLabel.text ?? "" | ||
appURL = URL(string: "instagram://user?username=\(instagramID)") | ||
webURL = URL(string: "https://instagram.com/\(instagramID)") | ||
} else { | ||
let twitterID = snsLabel.text ?? "" | ||
appURL = URL(string: "twitter://user?id=\(twitterID)") | ||
webURL = URL(string: "https://twitter.com/\(twitterID)") | ||
} | ||
guard let appURL, let webURL else { return } | ||
|
||
if UIApplication.shared.canOpenURL(appURL) { | ||
UIApplication.shared.open(appURL, options: [:], completionHandler: nil) | ||
} else { | ||
UIApplication.shared.open(webURL, options: [:], completionHandler: nil) | ||
} | ||
} |
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.
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
feat: 덕질 명함 생성 뷰 구현 #449
fix: 이미지 업로드 속도 개선 #457
📸 스크린샷
📮 관련 이슈