I would like to provide a TableFooterView in SwiftUI in my List to show the copyright and version of the app.
In UIKit, I can achieve this by the following code:
tableView.tableFooterView = SomeFooterView(frame: .init(x: .zero, y: .zero, width: UIScreen.main.bounds.width, height: 80))
Results:
However in SwiftUI List, I can only achieve this in Section(footer: _). My alternative approach like so:
var body: some View {
NavigationView {
Group {
VStack {
List {
//Lists code...
}
Text("© 2021 - \(getCurrentYear())")
Text("Version \(getVersion() ?? "")")
}
}
.listStyle(InsetGroupedListStyle())
.navigationBarTitle("Settings")
}
}
But this is the result I achieved:
How can I achieve the exact same result as in table.tableFooterView?

