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.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is there a way to create a BGRA8Unorm texture that doesn't take up a lot of memory on the device (iOS and MacOS)? In my app the user can create a texture of any size, however the memory usage becomes too high even with relatively average sized textures (ex. 2048 by 2048). Is there a way to create large textures that don't take up a lot of memory?
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.