Swiftpack.co -  cemolcay/XYPad as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A quick and easy xy-pad control for iOS
.package(url: "https://github.com/cemolcay/XYPad.git", from: "0.1")


A quick and easy XY-Pad control for iOS, suitable for controlling two values on a 2D-grid such as music applications.



Add the repo url to your swift package manager.



  • Create an instance of XYPad
  • Listen its valueChanged event
var xyPad = XYPad()

override func viewDidLoad() {
    xyPad.addTarget(self, action: #selector(xyPadValueChanged(sender:)), for: .valueChanged)

@IBAction func xyPadValueChanged(sender: XYPad) {
    print(sender.xValue, sender.yValue)
  • You can adjust the indicatorSize, indicatorView, xLabel, yLabel, xLine and yLine values after the initialization.

  • You can set minXValue and maxXValue

  • You can set minYValue and maxYValue

  • for the x-y value ranges.

  • Set resetsToCenter property to true if you want to the xy-pad resets its value to the center after the user lifts off their finger.


Stars: 1
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Initial Release
3 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API