title: Update specific tapped marker.userdata values for given keys
body: <p>I am using userdata to add custom data to my google maps markers. I am setting the marker.userdata through a class which I have created. Since I have many markers, I am assigning dictionary variables to the class and then assigning that information to userdata. </p>
  
  <p>My question is, once I have tapped on the marker and displayed my userdata in a label, a user can change a textfield to which I want that label to be set. How do I update/ refresh/ reset a particular userdata value specifically for that tapped marker?</p>
  
  <p>setting the class</p>
  
  <pre><code>    class markerUserData{
  var nameUserData: String
  var tags: String
  
  init(Name: String, Tags: String) {
      self.nameUserData = Name
      self.tags = Tags
  }
  </code></pre>
  
  <p>creating the markers.userdata</p>
  
  <pre><code>    for p in STOREDPlaces {
  
              let name = p["StoredPlaceName"] as? String
              let tags = p["Tags"] as? Strin
              markers.map = self.vwGMap
              self.vwGMap.setNeedsDisplay()
  
              let storedPlaceUserData = markerUserData(Name: name!, Tags: tags!)
             markers.userData = storedPlaceUserData
          }
  </code></pre>
  
  <p>the tapped function </p>
  
  <pre><code>    func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -&gt; Bool {
  
          detailsName.text = (marker.userData as! markerUserData).nameUserData
   tagsMarker = (marker.userData as! markerUserData).tags
      }
  
      @IBAction func editingTextField(_ sender: Any) {
    //So in here i want something which will update (marker.userData as! markerUserData).tags and set it to whatever has been edited 
  }
  </code></pre>