Thats what I thought earlier and I was trying to do same as github sample
let point = AGSPoint(x:long,y:lat,spatialReference: AGSSpatialReference.wgs84())
let attr = ["Name":"a","Type":"b"]
let feature = self.featureTable.createFeature(attributes: attr, geometry: point)
//add the feature to the feature table
self.featureTable.add(feature) { [weak self] (error: Error?) -> Void in
if let error = error {
print("Error while adding feature :: \(error)")
}
else {
//applied edits on success
self?.applyEdits()
}
}
and I am getting an error in
Error Domain=com.esri.arcgis.runtime.error Code=1 "Null pointer" UserInfo={NSLocalizedFailureReason=feature cannot be null.
feature is returning as null from createFeature function.