커뮤니티 게시글 - 링크적용
This commit is contained in:
@@ -10,6 +10,8 @@ import UIKit
|
||||
|
||||
struct DetectableTextView: UIViewRepresentable {
|
||||
var text: String
|
||||
var textSize: CGFloat = 11.3
|
||||
var font: String = Font.light.rawValue
|
||||
|
||||
func makeUIView(context: Context) -> UITextView {
|
||||
let textView = UITextView()
|
||||
@@ -17,7 +19,7 @@ struct DetectableTextView: UIViewRepresentable {
|
||||
textView.backgroundColor = .clear
|
||||
textView.isScrollEnabled = true
|
||||
textView.dataDetectorTypes = .link
|
||||
textView.font = UIFont(name: Font.light.rawValue, size: 11.3)
|
||||
textView.font = UIFont(name: font, size: textSize)
|
||||
textView.textColor = .white
|
||||
textView.textContainer.lineFragmentPadding = 0
|
||||
textView.textContainerInset = .zero
|
||||
|
Reference in New Issue
Block a user