struct ContentView: View {
   @State private var title: String = "Default Title"
   @State private var titleInput: String = ""

   var body: some View {
      VStack {
         Text(title)
            .padding(10)
         TextField("Insert Title", text: $titleInput)
            .textFieldStyle(.roundedBorder)
         Button(action: {
            title = titleInput
            titleInput = ""
         }, label: { Text("Change Title") })
         Spacer()
      }.padding()
   }
}