Skip to content

yermukhanbet/JoystickButton

Repository files navigation

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!

About

Virtual Joystick kind of button on UIKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages