Is there a way to determine when the user is about to quit the application while using Mac Catalyst? I'd like to alert the user when they have unsaved changes before they quit, but cannot seem to find how to do that using Mac Catalyst.
Post
Replies
Boosts
Views
Activity
How can I create a dashed line using a Metal shader? I'm thinking something similar to the CoreGraphics "lineDash" property.
I am trying to make a drawing app using swift and wanted to add a feature to stabilize the curves that the user draws. Sometimes the curves come out jittery, so I was wondering if there was any kind of algorithm that would look at the point before drawing it to the screen and force it to be closer to the previous point, thereby smoothing it out.