Latest | 0.1.0 |
---|---|
Homepage | https://github.com/hyperoslo/Contract |
License | MIT |
Platforms | ios 7.0, requires ARC |
Dependencies | Hex, HYPWebView, Signature, UIButton-ANDYHighlighted, UIViewController-HYPContainer |
Frameworks | UIKit |
Authors |
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
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.
Latest podspec
{ "name": "Contract", "summary": "The easiest way to sign your soul away", "version": "0.1.0", "homepage": "https://github.com/hyperoslo/Contract", "license": "MIT", "authors": { "Hyper Interaktiv AS": "[email protected]" }, "source": { "git": "https://github.com/hyperoslo/Contract.git", "tag": "0.1.0" }, "social_media_url": "https://twitter.com/hyperoslo", "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Source/**/*", "resource_bundles": { "Contract": [ "Assets/*.{png}" ] }, "frameworks": "UIKit", "dependencies": { "Hex": [], "HYPWebView": [], "Signature": [], "UIButton-ANDYHighlighted": [], "UIViewController-HYPContainer": [] } }
Sun, 28 Feb 2016 14:23:03 +0000