How to add swipe controls

Hi, I wanted to make a game which have a top down directional player and I wanted my player to move with swipes. I wanted to make that game for android.
Plz tell me how to implement swipe controls in my game.

It’s my example.

Thanks it was helpfull, Great Game but the ball goes off the screen