Latest 1.1.3
Homepage https://github.com/ctarda/Turnstile
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0

Build Status
Carthage compatible
Version
License
Platform

Turnstile is a lightweight implementation of a Finite State Machine in Swift.

Turnstile is inspired by some of the existing open source implementations of State Machines in Swift, in particular:

Turnstile aims to be simple to use, while maintaning a clean API.

Turnstile builds as a framework, and therefore needs iOS 8.

Turnstile has been migrated to Swift 2, and therefore it requires Xcode 7.

Installation

If you want to install Turnstile manually just include all the Swift files in Sources/Turnstile in your project.

Turnstile is available through CocoaPods. To install
it, simply add the following line to your Podfile:

use frameworks!
pod 'Turnstile'

If you use Carthage, add to your Cartfile:

github "ctarda/Turnstile"

If you use the Swift Package Manager, add it to the dependencies of your Package.swift file:

import PackageDescription

let package = Package(
    //
    dependencies: [
        //
        .Package(url: "https://github.com/ctarda/Turnstile.git", majorVersion: 1, minor: 1)
    ]
)

Usage

The project includes a sample app.

Author

Cesar Tardaguila, https://twitter.com/ctarda

License

Turnstile is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Turnstile",
    "version": "1.1.3",
    "summary": "Turnstile is a lightweight implementation of a Finite State Machine in Swift.",
    "description": "Turnstile is a lightweight implementation of a [Finite State Machine](http://en.wikipedia.org/wiki/Finite-state_machine) in Swift.nnTurnstile is inspired by some of the existing open source implementations of State Machines in Swift, in particular:n* [Transporter](https://github.com/DenHeadless/Transporter)n* [SwiftyStateMachine](https://github.com/macoscope/SwiftyStateMachine)nnTurnstile aims to be simple to use, while maintaning a clean API.nnTurnstile builds as a framework, and therefore needs iOS 8.",
    "homepage": "https://github.com/ctarda/Turnstile",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Cesar Tardaguila",
    "source": {
        "git": "https://github.com/ctarda/Turnstile.git",
        "tag": "1.1.3"
    },
    "social_media_url": "https://twitter.com/ctarda",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source_files": "Sources/Turnstile/**/*.{swift,h}"
}

Pin It on Pinterest

Share This