import SwiftUI struct KeyboardAwareScrollableView : View { @ObjectBinding var venue: SomeDataModel var body: some View { // Apply to any view with an instrinsic scroll view – ScrollView, Form, List, etc Form { Section { TextField($venue.name, placeholder: Text("Venue Name")) } Section(header: Text("Address")) { TextField($venue.street, placeholder: Text("Street")) TextField($venue.city, placeholder: Text("City")) TextField($venue.country, placeholder: Text("Country")) TextField($venue.postalCode, placeholder: Text("Postcode/ZIP")) } // etc. } .navigationBarTitle(Text("New venue")) .modifier(AdaptsToSoftwareKeyboard()) // <-- apply the modifier here } }