This sample demonstrates how you can use the sketch graphics overlay to draw point or line or polygon geometry. This sample has a toolbar of sketch tools at the bottom. You can choose the type of geometry using the switch. Sketch by tapping on the map. There are tools to undo or redo an action or clear everything.
How it works
The sample uses start(with:creationMode:) initializer on AGSSketchEditor. The initializer takes in the creation mode which could be any of the following:
The sketch editor has a undo manager of type NSUndoManager that provides the undo and redo methods. To clear everything there is a clear method on the sketch graphics overlay.