SVProgressHUD
is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS and tvOS.
Try SVProgressHUD
on Appetize.io.
Net 7.0 for iOS is supported
- This binding is for getting it worked on Xamarin.iOS with fully access to all methods.
- Original Objective-C library: https://github.com/SVProgressHUD/SVProgressHUD
Install-Package SVProgressHUD
- https://www.nuget.org/packages/SVProgressHUD
make
- Output:
build/SVProgressHUD.dll
- Edit file
Makefile
->NATIVE_RELEASE
to the latest version of native ObjC library - Update file
SVProgressHUD.nuspec
->version
to new version (Nuget version), usually the same as native version make
: Load the ObjC source code and build the dll of binding librarymake nuget
: Run nuget commandline to push new versionmake clean-all
: Clean all build files
using System;
using SVProgressHUDBinding;
using UIKit;
namespace DemoHUD
{
public partial class ViewController : UIViewController
{
protected ViewController(ObjCRuntime.NativeHandle handle) : base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
partial void BtnToggle_TouchUpInside(UIButton sender)
{
if (!SVProgressHUD.IsVisible)
{
//Show loading indicator
SVProgressHUD.Show();
} else
{
//Hide loading indicator
SVProgressHUD.Dismiss();
}
}
}
}