Hey Forum friends. I am an new IOS Developer and have been working on SwiftUI for about 2 months. I am working on developing a Swift UI App and I have the desire to produce a drag and drop animation effect for a sports type application. This is not a game but a user drag drop interface to make a selection tool where selecting an option is a little more game like. Like putting a ball to select 1 of six options provided on the sheet.
So the simple design is as follows. The user has a sheet open which has a small solid blue circle shape which can be dragged using gesture(DragGesture()). In Playing around with this circle I was experimenting with trying to drag the blue circle like a marble so that it rolls for a defined distance to follow the direction (vector) for a distance where it would appear to roll like a marble till it hit an option target in either the top left or top right corner of the screen.
I had the thought that maybe there may be a possible code design to implement this in a SwiftUI sheet via a drag animation effect.
So another advanced example of what I am working at. You have a 6 black round circle on a UI Sheet in six positions on a rectangle, resembling pockets on a pool table. in the center of the pool table you have a blue circle representing a pool ball The user touches the circle using a gesture and flick it toward toward one of the 6 pool pockets on the screen to select one of the six options represented on the sheet. If the user did not hit the correct pocket option, then a reset button could reset the sheet for another attempt.
The idea behind this is to make the selection process more fun and exciting.
I realize this might not be possible without using something like sprites. I had the idea while animating a chart graph, where the chart line was drawn for let to right on the screen in a 3 second animation. I suspect this might be possible using drag and drop.
Thanks for any suggestions for creating this design in an IOS App.