Is there a way to customize SwiftUI List so cells are displayed from bottom to top?
Related question with UITableView: How to populate UITableView from the bottom upwards?
Is there a way to customize SwiftUI List so cells are displayed from bottom to top?
Related question with UITableView: How to populate UITableView from the bottom upwards?
struct FlipEffect: GeometryEffect {
func effectValue(size: CGSize) -> ProjectionTransform {
let t = CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: size.height)
return ProjectionTransform(t)
}
}
struct ContentView: View {
var body: some View {
List(0..<100) { item in
Text("hello, world")
.modifier(FlipEffect())
}
.modifier(FlipEffect())
}
}