Код: Выделить всё
List {
Section {
Text("Row")
Text("Row")
Text("Row")
} header: {
Text("Header")
}
.headerProminence(.increased)
}
< /code>
Я также попытался обернуть заголовок в vStack, чтобы явно установить выравнивание: < /p>
List {
Section {
Text("Row")
Text("Row")
Text("Row")
} header: {
VStack(alignment: .leading) {
Text("Header")
}
}
.headerProminence(.increased)
}
Вот изображение проблемы.>
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-ios-18-2