Swiftpack.co -  nashysolutions/Rotary as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A wheel-like UI control for choosing options from a menu. This repository is no longer maintained.
.package(url: "https://github.com/nashysolutions/Rotary.git", from: "1.0.0")

This repository is no longer maintained

A wheel-like UI control component for choosing options from a menu.


Tap the following image to launch Appetize. The source for the demo app is available here.



import Rotary

struct Dancer: WheelOption {
    let name: String
    var wheelOptionTitle: String {
        return name

let wheelControl = RotaryWheelControl<Dancer>()
wheelControl.rotationEnded = { [unowned self] dancer in
    self.label.text = "The current selection is \(dancer.name)"
    Dancer(name: "Joanne"),
    Dancer(name: "Stacey"),
    Dancer(name: "Rhian"),
    Dancer(name: "Cathy"),
    Dancer(name: "Robin")
wheelControl.styling = RotaryWheelStyling(
                                    font: <placeholder>,
                                    textColour: <placeholder>,
                                    spindleColour: <placeholder>,
                                    backgroundColour: <placeholder>,
                                    innerGrooveColour: <placeholder>,
                                    outerGrooveColour: <placeholder>

The closure 'rotationEnded' is called immediately after layout. If you do not want this behaviour, call layout before assigning the closure.


List this in your Package.swift manifest file as a Swift Package dependency. Releases Page.


Heavily influenced by the awesome team over at raywenderlich.com.


Stars: 0
Last commit: 1 week 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.

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