Created
April 18, 2020 00:39
-
-
Save FitzAfful/e9cb3ada08b4dc123a3db43e3936b15f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func setupEventBusSubscriber() { | |
_ = EventBus.onMainThread(self, name: "fetchEmployees") { result in | |
if let event = result!.object as? EmployeesEvent { | |
if event.employees != nil { | |
self.showTableView() | |
} else if let message = event.errorMessage { | |
self.showAlert(title: "Error", message: message) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment