Skip to content

Instantly share code, notes, and snippets.

@guntidheerajkumar
Created March 30, 2017 07:28
Show Gist options
  • Select an option

  • Save guntidheerajkumar/f797dab2dccde9c26bc62f3365941e85 to your computer and use it in GitHub Desktop.

Select an option

Save guntidheerajkumar/f797dab2dccde9c26bc62f3365941e85 to your computer and use it in GitHub Desktop.
[assembly: Xamarin.Forms.Dependency (typeof(LoadingService))]
namespace YOURNAMESPACE.iOS
{
public class LoadingService : ILoadingService
{
public LoadingService ()
{
BTProgressHUD.ForceiOS6LookAndFeel = true;
}
#region ILoadingService implementation
public void Show (string message = "Loading")
{
BTProgressHUD.Show (maskType: ProgressHUD.MaskType.Gradient);
}
public void Hide ()
{
BTProgressHUD.Dismiss ();
}
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment