Sha256: 373b0cb77687b65120b001dc309f0cd2c8a45d6d9e89dc44a1dc66114fb3cfdf
Contents?: true
Size: 404 Bytes
Versions: 4
Compression:
Stored size: 404 Bytes
Contents
module SugarCube module Modal module_function def present_modal(view_ctlr, &block) UIApplication.sharedApplication.keyWindow.rootViewController.presentViewController(view_ctlr, animated:true, completion:block) end def dismiss_modal(&block) UIApplication.sharedApplication.keyWindow.rootViewController.dismissViewControllerAnimated(true, completion:block) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sugarcube-0.11 | lib/sugarcube/modal.rb |
sugarcube-0.10 | lib/sugarcube/modal.rb |
sugarcube-0.9.4 | lib/sugarcube/modal.rb |
sugarcube-0.9.3 | lib/sugarcube/modal.rb |