SwiftyLisk allows you to add blockchain functionalities to any Swift app for iOS and macOS alike.
- iOS >= 8.0 || macOS >= 10.10 || tvOS >= 9.0+ || watchOS >= 2.0
- Xcode >= 8.1
- Swift >= 3
SwiftyLisk is designed to communicate with any Lisk node running Lisk 0.9.2. Before communicating with nodes running a version of Lisk other than 0.9.2, make sure all needed API calls are supported by the node's version of Lisk.
- Close your Xcode project
- Make sure CocoaPods is installed on your machine by running
pod --version
on the Terminal. If you get-bash: pod: command not found
, please follow CocoaPods' installation guide cd
to the directory containing your project'sxcodeproj
directory- Add CocoaPods to your project by running
pod init
- Open the newly created
Podfile
- Ensure
use_frameworks!
is specified - Add the following pods:
pod 'SwiftyJSON'
pod 'Alamofire'
- Save and close
Podfile
- Install the newly specified pods by running
pod install
- Open the newly created
YOUR_PROJECT.xcworkspace
(notYOUR_PROJECT.xcodeproj
) - Drag and drop the
Lisk
directory into your project's navigator (shortcut to show the navigator:Command-1
) - Build the project (shortcut:
Command-B
)
The Lisk API is composed of eight modules:
- AccountAPI
- BlockAPI
- DelegateAPI
- LoaderAPI
- MultisignatureAPI
- PeerAPI
- SignatureAPI
- TransactionAPI
Every available method is implemented as a class method. At the moment the Wiki for SwiftyLisk is not ready. Please refer to the comments preceding each method for documentation. Also, notice that SwiftyLisk implements all methods available in the Lisk API Reference, so, as a rule of thumb, to use a method from the reference reference type MODULE_NAME + API.METHOD_NAME
. (Note: a few methods have been renamed to make code more readable.)
SwiftyLisk is maintained by LiskUser1234 (Lisk Forum, Reddit).
To ensure SwiftyLisk a future, please consider voting LiskUser1234 for delegate on the Lisk mainnet.
For donations, these are SwiftyLisk's addresses:
- Bitcoin: 1NCTZwBJF7ZFpwPeQKiSgci9r2pQV3G7RG
- Lisk: 6137947831033853925L
Thank you for your support.