struct ContentView: View {
   @State private var appData = ApplicationData.shared
   @FocusState var focusTitle: Bool
   @State private var inputTitle: String = ""

   var body: some View {
      ScrollView {
         VStack {
            Image("spot1")
               .resizable()
               .scaledToFit()
            HStack {
               TextField("Insert Title", text: $inputTitle)
                  .textFieldStyle(.roundedBorder)
                  .focused($focusTitle)
               Button("Save") {
                  focusTitle = false
               }.buttonStyle(.borderedProminent)
            }
            Spacer()
         }.padding()
      }
      .offset(CGSize(width: 0, height: appData.scrollOffset))
   }
}