-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] 로그인, 온보딩, 설정화면 QA 수정 (#52)
- Loading branch information
Showing
13 changed files
with
140 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,8 +105,9 @@ extension AuthViewController: MFMailComposeViewControllerDelegate { | |
let mailViewController = MFMailComposeViewController() | ||
mailViewController.mailComposeDelegate = self | ||
mailViewController.setToRecipients(["[email protected]"]) | ||
mailViewController.setSubject("로그인 문제") | ||
mailViewController.setMessageBody("로그인에 어떤 문제가 있나요?", isHTML: false) | ||
mailViewController.setSubject("로그인 문제 문의") | ||
mailViewController.setMessageBody("문제 내용(스크린샷 또는 녹화 화면 첨부 가능):\n사용한 기기 종류:\n문의 답변을 받을 연락처:", | ||
isHTML: false) | ||
|
||
return mailViewController | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// LinksTextView.swift | ||
// Common | ||
// | ||
// Created by Watcha-Ethan on 2023/02/23. | ||
// Copyright © 2023 Fitfty. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public final class LinksTextView: UITextView, UITextViewDelegate { | ||
public typealias Links = [String: String] | ||
public typealias OnLinkTap = (URL) -> Bool | ||
|
||
public var onLinkTap: OnLinkTap? | ||
|
||
override init(frame: CGRect, textContainer: NSTextContainer?) { | ||
super.init(frame: frame, textContainer: textContainer) | ||
isEditable = false | ||
isSelectable = true | ||
isScrollEnabled = false | ||
delegate = self | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
super.init(coder: coder) | ||
} | ||
|
||
public func addLinks(_ links: Links) { | ||
guard attributedText.length > 0 else { | ||
return | ||
} | ||
let mText = NSMutableAttributedString(attributedString: attributedText) | ||
|
||
for (linkText, urlString) in links { | ||
if linkText.count > 0 { | ||
let linkRange = mText.mutableString.range(of: linkText) | ||
mText.addAttribute(.link, value: urlString, range: linkRange) | ||
mText.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: linkRange) | ||
} | ||
} | ||
attributedText = mText | ||
} | ||
|
||
public func textView(_ textView: UITextView, shouldInteractWith URL: URL, in characterRange: NSRange) -> Bool { | ||
return onLinkTap?(URL) ?? true | ||
} | ||
|
||
public func textViewDidChangeSelection(_ textView: UITextView) { | ||
textView.selectedTextRange = nil | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,7 +196,7 @@ extension SettingViewController: MFMailComposeViewControllerDelegate { | |
mailViewController.mailComposeDelegate = self | ||
mailViewController.setToRecipients(["[email protected]"]) | ||
mailViewController.setSubject("문의하기") | ||
mailViewController.setMessageBody("서비스 이용에 어떤 문제가 있나요?", isHTML: false) | ||
mailViewController.setMessageBody("문제 내용(스크린샷 또는 녹화 화면 첨부 가능):\n사용한 기기 종류:\n문의 답변을 받을 연락처:", isHTML: false) | ||
|
||
return mailViewController | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters