Created
August 14, 2013 19:59
-
-
Save jdewind/6234969 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
class MBProgressHUD | |
def rac_command=(command) | |
self.rac_liftSelector "hud_visible=:", withObjects: rac(command).executing.startWith(command.isExecuting).boolean | |
end | |
def hud_visible=(visible) | |
if visible | |
self.show true | |
else | |
self.hide true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment