before updating to iOS 26 my list was looking fine but now it has abnormal paddings and because I am using fixed height, I had to increase the height from 40 to 60 to fit the text. There are currently two issues I am facing.
- The list is now not being clipped at the bottom edges when I increase the height to 60
- When the text is more than one line, unlike before it does not decrease padding to fit it in the specified height but instead cuts it off.
Following are my modifiers for my view, I have also treid with minHeight and mxHeight but both issues persist
struct SwiftUIView: View {
var body: some View {
let names = [Name(name: "Name 1"), Name(name: "Name 2 Name Double line list row text which should fit in it too")]
ZStack {
Color(.pink)
List {
Section {
ForEach(names) { name in
Button {
// do action
} label: {
Text(name.name)
}
}
}
}
.listStyle(.plain)
.clipShape(.rect(cornerRadius: 15))
.scrollContentBackground(.hidden)
.layoutPriority(1)
.frame(height: 2 * 52)
.padding(10)
}
}
}
Desired behaviour is that like before iOS 26 the padding would decrease for a row when the text is multiline.


.clipShapeafter the.frame. Otherwise, please provide enough code to allow the problem to reproduced (in other words, more than a few modifiers). A screenshot would also be helpful to illustrate the issue.