Fix text view

This commit is contained in:
Isaac 2024-12-10 11:24:31 +08:00
parent c016f0dd7e
commit 0340e69da6
2 changed files with 2 additions and 2 deletions

View File

@ -66,6 +66,7 @@ swift_library(
"//submodules/ComponentFlow",
"//submodules/SSignalKit/SwiftSignalKit",
"//submodules/TelegramUI/Components/AnimatedTextComponent",
"//submodules/Components/MultilineTextComponent",
"//submodules/AppBundle",
"//submodules/UIKitRuntimeUtils",
"//submodules/TelegramPresentationData",

View File

@ -68,8 +68,7 @@ final class TextView: UIView {
transition: .immediate,
component: AnyComponent(MultilineTextComponent(
text: .plain(attributedString),
horizontalAlignment: alignment,
lineSpacing: 0.6
horizontalAlignment: alignment
)),
environment: {},
containerSize: CGSize(width: constrainedWidth, height: 1000.0)