Enable text selection for video description

This commit is contained in:
Arkadiusz Fal 2021-11-15 19:28:21 +01:00
parent 8d2694df33
commit c78dd4a35e

View File

@ -339,6 +339,7 @@ struct VideoDetails: View {
VStack(alignment: .leading, spacing: 10) {
if let description = video.description {
Text(description)
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
.font(.caption)
.padding(.bottom, 4)