SwiftyConnects update to version 0.1.7 is a really small update with 2 points in focus.
Number 1 was to add the missing comment_options and delete_comment broadcasting actions SteemConnect provides. They were honestly forgotten by myself and quickly added, since they are needed.
public func commentOptions(author : String, permlink: String, maxAcceptedPayout: String?, percentSteemDollars: Int?, allowVotes : Bool, allowCurationRewards : Bool, extensions: NSDictionary?, completion:((JSONString) -> Void)?)
public func commentDelete(author : String, permlink: String, completion:((JSONString) -> Void)?)
In case you decide to set maxAcceptedPayout, percentSteemDollars or extensions to nil, default values are used !
extensions
Should be used the same way as they are used in SteemJS.
Number 2 was changing my exit-early if-clauses to the preferred Swift way -> guard.
Guard is pretty much an if-else clause in one line, or a better and easier version for exit-earlys.
If you want to find more about guard - click here
Using Guard instead of If-Clauses were done by this commit
Adding comment_options / delete_comment were done by this commit
Carthage
github "caspernikus/SwiftyConnect" ~> 0.1.7
(When building SwiftyConnect the lib OAuth2 is also builded, there is no need to add OAuth2 inside your project, since SwiftyConenct contains OAuth2!)
Create Pull Requests
Please visit my last contribution here, to see that benediktveith is also my account !