Skip to content

a Swift package to easily add Thumbstick functionality to your iOS app.

Notifications You must be signed in to change notification settings

KhanKhuu/Thumbstick-Package

Repository files navigation

Thumbstick

First, add the Assets folder located at https://github.com/KhanKhuu/Thumbstick/tree/master/Thumbstick to your project. You could also just save the images "knob" and "white circle" to your Desktop and drag them into your project's existing Assets folder (probably easiest). The package doesn't contain the images (Swift packages don't support carrying Assets) - but this package uses them.

[ Optionally, you could use your own custom images for the joystick by just modifying the image-adding lines in the Thumbstick.swift and SampleViewController.swift files. ]

Now, build the project with the SampleViewController.swift file. Now you can just use it as a template and add your code. Enjoy!

About

a Swift package to easily add Thumbstick functionality to your iOS app.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages