I have an Xcode project for an IOS iPad app. The app is for Alzheimer's research. The project is to make an app that will record the time it takes to draw an image with an apple pencil, whilst recording:
In total there are 6 variables that need to be captured and presented:
Total time from start of first stroke to the end of the last stroke including the time between strokes - in milliseconds
Time on tablet - in milliseconds
strokes per minute - stroke/min
speed of strokes - m/s (total drawing distance/time on tablet)
Total distance between strokes - millimetres
average pressure of Apple Pencil for time on tablet. In any specified pressure
I would like it to only respond to the apple pencil and not touch from fingers.
The clear button needs to reset the timers/values and the drawing board.
I will send some code that I have already worked on but it may be useless. The purpose of this code is for research into Alzheimer's disease I'm a student doing my research on how to be able to detect it with a single drawing.
Thank you for your help.
Ive done a bit of the code but i have only 2 days experience with swift.
It's only a simple app with just one UI page.