https://github.com/WSSCreativeDepartment/FetchMyPendingPayout
https://itunes.apple.com/us/app/fetchmypendingpayout/id1400128805?ls=1&mt=8
My last announcement about this app was a "little update", I didn't know that I will make much better solutions in the next three days. I even took some time to create some graphics, but the real improvement is actually the code and the new functions.
This is the new app icon, made by myself.
I had some troubles with typing Steemit username in the text field. If I wrote "Dumar022" or "DUMAR022" the app wouldn't give any results. If there any extra "whitespace" ( like: " dumar022" or "dumar022 ") the app would crash. So I added this code to allow only lowercase letters and to prevent the whitespace:
func textField(_ textFieldToChange: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
//just change this charectar username it's a text field
if textFieldToChange == typeUserName {
let characterSetNotAllowed = CharacterSet.whitespaces
if let _ = string.rangeOfCharacter(from:NSCharacterSet.uppercaseLetters) {
return false
}
if let _ = string.rangeOfCharacter(from: characterSetNotAllowed, options: .caseInsensitive) {
return false
} else {
return true
}
}
return true
}`
Before adding this functions, the app contained a warning message. Now I was able to remove that message. The whole app is solid now and it is much easier to use.
I added the Bittrex API to monitor the price of Steem and SBD on the Bittrex market. I did it differently than as with Steemjs API . I didn't use "SwiftyJSON" pod, I simply created a new Swift file and constructed the code inside and called it from the main ViewController. I did the same for the Widget.
Fetching the information from Bittrex goes a few seconds slower than from Steemit. Maybe that's because of the Steem and SBD wallet maintenance of or maybe I should use "SwifyJSON" pod for this, I will make some test in the next few days and we will see.
This is what I'm pulling from Bittrex:
The widget is a small app extension that you can run even when your phone is locked. Swipe with your finger right until you see the widgets. At the bottom, you have the "EDIT" button which will take you to the list of all apps that you have with possible widgets. Find FetchMyPendingPayout or Steemple there and activate the widget.
The most useful thing here is the info about the pending payout from your recent Steemit post. When you write something good, you probably tend to go on Steemit every few minutes to check what is going on with your rewards. Now you can just check your widget. And you can see the additional info about the price of Steem and SBD on Bittrex.
Example: @ace108 resteemed
@happydolphin
Before I created this app, I would have to unlock my phone, enter the internet browser, type "Steemit" into the address bar, log in and go to my blog page to find this info.
Now I only have to swipe with my finger over my display (even when it's locked) and I get what I need.
3 days ago: FetchMyPendingPayout Widget Update
12 days ago: My new Widget on the App Store! Gotta check it!
I will try to include the price of Steem and SBD from Binance, Upbit and CoinMarketCap. I will also add the possibility to a user to choose what info from the application he would like to have in the widget.