Skip to content

Commit

Permalink
get saved Steemit username for getting wallet balance
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkmr committed Aug 20, 2018
1 parent 221abaf commit b28aa28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file not shown.
7 changes: 7 additions & 0 deletions Actifit/Actifit/Controllers/WalletVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class WalletVC: UIViewController {
var transactions = [Transaction]()

var username = ""
lazy var currentUser = {
return User.current()
}()

//MARK: VIEW LIFE CYCLE

Expand All @@ -27,6 +30,10 @@ class WalletVC: UIViewController {
}
override func viewDidLoad() {
super.viewDidLoad()
if let user = self.currentUser {
self.username = user.steemit_username
self.usernameTextField.text = self.username
}
self.applyFinishingTouchToUIElements()
self.getWalletBalance()
}
Expand Down
2 changes: 1 addition & 1 deletion Actifit/Actifit/Structs/Structs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ struct HttpMethods {

//API URLS
struct ApiUrls {

}

0 comments on commit b28aa28

Please sign in to comment.