I am trying to create sticky footer in swiftUI where other part of screen is scrollable but in footer there is one view with buttons and other element which should be fixed.

Thank You for help.
From iOS 15.0+, macOS 12.0+, Mac Catalyst 15.0+,tvOS 15.0+, watchOS 8.0+ you can use safeAreaInset
For example:
struct ContentView: View {
var body: some View {
VStack {
}
.safeAreaInset(edge: .bottom, spacing: 0) {
footerView
}
}
var footerView: some View {
// your content
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With