Fix DetailedSection's description framing

This commit is contained in:
Jezer Mejía
2022-12-12 18:27:21 -08:00
committed by osy
parent 5f60cf08ed
commit 586179c281
+8 -4
View File
@@ -31,10 +31,14 @@ struct DetailedSection<Content>: View where Content: View {
#if os(macOS)
Section(content: {
content
Text(description)
.lineLimit(nil)
.font(.footnote)
.padding(.bottom)
VStack {
Text(description)
.fixedSize(horizontal: false, vertical: true)
.lineLimit(nil)
.font(.footnote)
.padding(.bottom)
}
.frame(maxWidth: .infinity, alignment: .leading)
}, header: { Text(titleKey) })
#else
Section(content: { content }, header: { Text(titleKey) }, footer: { Text(description) })