/JoystickButton

Virtual Joystick kind of button on UIKit

Primary LanguageSwift

JoystickButton

Description

Joystick Button created natively on UIKit.

User should press and hold the center button in order to side move buttons appear on the screen with animation.

Development

Used CGAffineTransform for animations inside of ViewController.

Used UILongPressGestureRecognizer for press and hold observing at center button.

Used Snapkit for UI layout.

Demo video

Simulator.Screen.Recording.-.iPhone.11.Pro.-.2022-02-05.at.19.37.29.mp4

Remark

Potentially will be uploaded as SPM for reusing as UI component.

Any suggestions or pull requests are welcomed!