Commit 095d5ebc authored by Prakhar Agrawal's avatar Prakhar Agrawal
Browse files

Add README.md

parent b3f68c16
Loading
Loading
Loading
Loading

README.md

0 → 100644
+23 −0
Original line number Diff line number Diff line
### Steps to Use ###

1.  Use following pod profile:
      pod ‘Leegality’, :git => ‘http://gitlab.leegality.com/leegality-public/ios-sdk.git’, :tag => ‘1.0.0’
2. To initialize signing process, follow the below steps:
	<br __>2.1 Import Leegality on the top of the class
	<br __>2.2 Extend LeegalityProtocol in your ViewController class to get the response as result.
    <br __>2.3 Create getResult method of LeegalityProtocol as shown below
    <br __>Eg.:`func getResult(value: [String : String]) {
            //your code here
            print(value)
        }`
	<br __>2.4 To start the signing process, follow the below code
	<br __>Eg.:`let controller = Leegality()
        controller.delegate = self
        controller.url = "your-signing-url"
        self.present(controller, animated: true, completion: nil)`


### Result: ###

1. In case of successfully completion of signing process, signing window will be closed automatically and you will get a response with key name 'message' and corresponding 'success message' in the getResult method.
2. In case of error in signing process, signing window will be closed automatically and you will get a response with key name 'error' and corresponding 'error message'.