Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created August 14, 2013 19:59
Show Gist options
  • Save jdewind/6234969 to your computer and use it in GitHub Desktop.
Save jdewind/6234969 to your computer and use it in GitHub Desktop.
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