Skip to content

Commit

Permalink
Change loadingHud vars to let
Browse files Browse the repository at this point in the history
  • Loading branch information
JussiSuojanen committed Mar 16, 2017
1 parent 2c58d6c commit e7b5f17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Friends/AddFriendViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ protocol FriendViewModel {
var firstname: String? { get set }
var lastname: String? { get set }
var phonenumber: String? { get set }
var showLoadingHud: Bindable<Bool> { get set }
var showLoadingHud: Bindable<Bool> { get }

var updateSubmitButtonState: ((Bool) -> ())? { get set }
var navigateBack: (() -> ())? { get set }
Expand Down Expand Up @@ -39,7 +39,7 @@ final class AddFriendViewModel: FriendViewModel {
validateInput()
}
}
var showLoadingHud: Bindable = Bindable(false)
let showLoadingHud: Bindable = Bindable(false)

var updateSubmitButtonState: ((Bool) -> ())?
var navigateBack: (() -> ())?
Expand Down
2 changes: 1 addition & 1 deletion Friends/FriendsTableViewViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FriendsTableViewViewModel {
}

var onShowError: ((_ alert: SingleButtonAlert) -> Void)?
var showLoadingHud: Bindable = Bindable(false)
let showLoadingHud: Bindable = Bindable(false)

let friendCells = Bindable([FriendTableViewCellType]())
let appServerClient = AppServerClient()
Expand Down
2 changes: 1 addition & 1 deletion Friends/UpdateFriendViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ final class UpdateFriendViewModel: FriendViewModel {
}
}
}
var showLoadingHud = Bindable(false)

var updateSubmitButtonState: ((Bool) -> ())?
var navigateBack: (() -> ())?
var onShowError: ((_ alert: SingleButtonAlert) -> Void)?

let showLoadingHud = Bindable(false)
let appServerClient = AppServerClient()

init(friend: Friend) {
Expand Down

0 comments on commit e7b5f17

Please sign in to comment.