diff --git a/SodaLive/Sources/Live/Room/V2/Component/Text/TextView.swift b/SodaLive/Sources/Live/Room/V2/Component/Text/TextView.swift index 3e49609..02f48c6 100644 --- a/SodaLive/Sources/Live/Room/V2/Component/Text/TextView.swift +++ b/SodaLive/Sources/Live/Room/V2/Component/Text/TextView.swift @@ -15,6 +15,13 @@ struct DetectableTextView: UIViewRepresentable { func makeUIView(context: Context) -> UITextView { let textView = UITextView() + _ = textView.layoutManager + var attributes = [NSAttributedString.Key: Any]() + let paragraphStyle: NSMutableParagraphStyle = NSMutableParagraphStyle() + paragraphStyle.lineSpacing = 8 + attributes[NSAttributedString.Key.paragraphStyle] = paragraphStyle + textView.typingAttributes = attributes + textView.isEditable = false // Make it readonly textView.backgroundColor = .clear textView.isScrollEnabled = true