SwiftyConnect v.0.1.5
V.0.1.5 added a new Helper Class, which purpose is to present - mostly - needed code snippets and calculations for your Steem iOS application. The first version of it provides 4 basic functions which are:
calculateSteempower
Only needs the vestingShares of a user account, it fetches the global properties itself. It returns always a callback(error, steempower)getVotingPower
Needs the voting power of an user and the last voting time (both can be found via getAccounts), it calculates the currently voting power percentage out of it.createCommentPermlink
Can be used to create comment permlinks (e.g re-moonrise-hello-{timestamp})reputation
Converts the reputation into an readable stateFull Function Names:
public func calculateSteempower(vestingShares: String, callback:((Any?, Float?) -> Void)?)
public func getVotingPower(votingPower: Int, lastVoteTime: String) -> Double
public func createCommentPermlink(parentAuthor: String, parentPermlink: String) -> String
public func reputation(rawReputation: Double) -> Double
Unit Tests
The other part of V.0.1.5 was to increase the unit tests up to ~80%, meaning the next release will provide a 100% tested API and Library.
Missing Unit Tests are mostly for transactions, witnesses API endpoints. The more needed ones are all tested and should work.
Using the new advanced logo
SwiftyConnect also uses now the new advanced logo by
Installation
Carthage
github "caspernikus/SwiftyConnect" ~> 0.1.5
(When building SwiftyConnect the lib OAuth2 is also builded, there is no need to add OAuth2 inside your project, since SwiftyConenct contains OAuth2!)
Roadmap
- V0.2:
- Full API Unit Tests
- Full API Documentation
- V1.0:
- Full Documentation
- More Helper Class Functions
- Transactions Sending / Receiving
- Signing
How to contribute?
Create Pull Requests
GitHub Link
Proof for GitHub
Please visit my last contribution here, to see that benediktveith is also mine account !
Posted on Utopian.io - Rewarding Open Source Contributors