I have an app where a user can create features, using the GeometryEditor class.
I also want to adjust/modify/apply constraints to the geometry as the user is drawing. I can use
for await geom in geometryEditor.$geometry {
// alter geom if needed, apply constraints etc.
if let altered = applyContraints(to: geom) {
geometryEditor.replaceGeomtry(with: altered)
}
}This works, and the user experience is acceptable. However, this messes with the undo manager.
Is there a way to either fiddle with the undo stack, use a different method to apply a transform the geometry as the user is drawing?