Latest 1.0.0
Homepage https://github.com/mluedke2/SnowShoe-Swift
License MIT
Platforms ios 8.0, requires ARC
Dependencies OAuthSwift, ObjectMapper
Authors

CI Status
Version
License
Platform
Carthage compatible

The SnowShoe Stamp is an authentication tool for smartphones.

SnowShoe

Installation

SnowShoe-Swift is available through CocoaPods. To install
it, add the following line to your Podfile:

pod "SnowShoe-Swift"

SnowShoe-Swift is also available with Carthage. To install it, add the following line to your Cartfile:

github "mluedke2/snowshoe-swift"

Usage

Example

To run the example project, clone the repo, run pod install from the Example directory, and open SnowShoe-Swift.xcworkspace.

In your own project

The core piece of this library is the SnowShoeView, a subclass of UIView that automatically detects stamps and handles the API query.

To use it, add this import:

import SnowShoe_Swift

Then, assign your key and secret from the SnowShoe Dashboard to the view:

snowShoeView.appKey = "YOUR_APP_KEY"
snowShoeView.appSecret = "YOUR_APP_SECRET"

Then, implement SnowShoeDelegate, which will be notified when a stamp request is made to the API and when a result comes back:

public protocol SnowShoeDelegate {
  func onStampRequestMade()
  func onStampResult(result: SnowShoeResult?)
}

Then assign the delegate to the SnowShoeView:

snowShoeView.delegate = delegate

Author

Matt Luedke, [email protected]

Hardware and API managed by SnowShoe

License

SnowShoe-Swift is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SnowShoe-Swift",
    "version": "1.0.0",
    "summary": "iOS wrapper for SnowShoe in Swift 2",
    "description": "SnowShoe is an authentication tool for smartphones. This library provides a simple Swift wrapper.",
    "homepage": "https://github.com/mluedke2/SnowShoe-Swift",
    "license": "MIT",
    "authors": {
        "Matt Luedke": "mlu[email protected]"
    },
    "source": {
        "git": "https://github.com/mluedke2/SnowShoe-Swift.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/matt_luedke",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SnowShoe-Swift": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "OAuthSwift": [
            "0.4.4"
        ],
        "ObjectMapper": [
            "0.17"
        ]
    }
}

Pin It on Pinterest

Share This