https://github.com/hyperoslo/contract
The easiest way to sign your soul away
https://github.com/hyperoslo/contract
Last synced: about 1 year ago
JSON representation
The easiest way to sign your soul away
- Host: GitHub
- URL: https://github.com/hyperoslo/contract
- Owner: hyperoslo
- License: other
- Created: 2015-04-18T23:20:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T14:54:17.000Z (about 11 years ago)
- Last Synced: 2024-10-13T14:46:40.264Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 1.09 MB
- Stars: 15
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README

Apps that require signatures in a contract, behold!
No more crazyness, `Contract` makes signing your soul away much easier.
## Usage
```swift
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

## Installation
**Contract** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'Contract'
```
## Author
Hyper Interaktiv AS, ios@hyper.no
## License
**Contract** is available under the MIT license. See the LICENSE file for more info.