Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctarda/turnstile
Turnstile is a lightweight implementation of a Finite State Machine in Swift.
https://github.com/ctarda/turnstile
Last synced: about 1 month ago
JSON representation
Turnstile is a lightweight implementation of a Finite State Machine in Swift.
- Host: GitHub
- URL: https://github.com/ctarda/turnstile
- Owner: ctarda
- License: mit
- Created: 2015-06-06T11:36:24.000Z (over 9 years ago)
- Default Branch: trunk
- Last Pushed: 2021-12-14T13:31:08.000Z (about 3 years ago)
- Last Synced: 2024-12-21T17:48:06.529Z (about 2 months ago)
- Language: Swift
- Size: 141 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Turnstile
[![Build Status](https://travis-ci.org/ctarda/Turnstile.svg?branch=master)](https://travis-ci.org/ctarda/Turnstile)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/Turnstile.svg?style=flat)](http://cocoapods.org/pods/Turnstile)
[![License](https://img.shields.io/cocoapods/l/Turnstile.svg?style=flat)](http://cocoapods.org/pods/Turnstile)
[![Platform](https://img.shields.io/cocoapods/p/Turnstile.svg?style=flat)](http://cocoapods.org/pods/Turnstile)Turnstile is a lightweight implementation of a [Finite State Machine](http://en.wikipedia.org/wiki/Finite-state_machine) in Swift.
Turnstile is inspired by some of the existing open source implementations of State Machines in Swift, in particular:
* [Transporter](https://github.com/DenHeadless/Transporter)
* [SwiftyStateMachine](https://github.com/macoscope/SwiftyStateMachine)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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
use frameworks!
pod 'Turnstile'
```If you use Carthage, add to your Cartfile:
```ruby
github "ctarda/Turnstile"
```If you use the Swift Package Manager, add it to the dependencies of your Package.swift file:
```ruby
import PackageDescriptionlet 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.