All Projects → hyperoslo → Contract

hyperoslo / Contract

Licence: other
The easiest way to sign your soul away

Programming Languages

objective c
16641 projects - #2 most used programming language
swift
15916 projects
ruby
36898 projects - #4 most used programming language

Contract

Apps that require signatures in a contract, behold!

No more crazyness, Contract makes signing your soul away much easier.

Usage

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, HYPContractViewControllerDelegate {

  var window: UIWindow?

  func application(
    application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
      window = UIWindow(frame: UIScreen.mainScreen().bounds)

      let contractController = HYPContractViewController(
        contractURL: "http://ga.berkeley.edu/wp-content/uploads/2015/02/pdf-sample.pdf",
        firstPartyName: "CEO",
        secondPartyName: "Michael Minion",
        needsSignature: true)

      contractController.delegate = self

      if let window = self.window {
        window.rootViewController = UINavigationController(rootViewController: contractController)
        window.makeKeyAndVisible()
      }

      return true
  }

  func contractControllerDidFinish(
    contractController: HYPContractViewController!,
    withFirstPartySignature firstPartySignature: UIImage!,
    andSecondPartySignature secondPartySignature: UIImage!) {
      println("finished")
  }

  func contractControllerDidDismiss(contractController: HYPContractViewController!) {
    println("dismiss")
  }
}

How it looks

Demo

Installation

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

pod 'Contract'

Author

Hyper Interaktiv AS, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].