I want to work directly with PKStrokes in my app. To transform and change them individually. By one or by grouping them.
I thought a perfect way of keeping track of them is to put them in a Set<PKStroke>
. By doing this I receive an error: "Type 'PKStroke' does not conform to protocol 'Hashable'".
Correct me if I'm wrong, but aren't all PKStrokes unique? Thus they should be eligible to be kept in a Set?
What is a correct way of accessing/grouping/storing PKStrokes then? Manually searching for them in canvasView.drawing.strokes
?
Thank you very much!