https://github.com/trinnguyen/svprogresshud-xamarin
Xamarin.iOS binding for SVProgressHUD
https://github.com/trinnguyen/svprogresshud-xamarin
svprogresshud xamarin xamarin-ios
Last synced: 20 days ago
JSON representation
Xamarin.iOS binding for SVProgressHUD
- Host: GitHub
- URL: https://github.com/trinnguyen/svprogresshud-xamarin
- Owner: trinnguyen
- License: mit
- Created: 2016-03-20T15:16:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T14:14:42.000Z (7 months ago)
- Last Synced: 2025-03-23T20:22:01.658Z (about 1 month ago)
- Topics: svprogresshud, xamarin, xamarin-ios
- Language: C#
- Size: 1.38 MB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SVProgressHUD for Xamarin.iOS
[](https://badge.fury.io/nu/SVProgressHUD)
> `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](https://appetize.io/app/p8r2cvy8kq74x7q7tjqf5gyatr).
## Xamarin.iOS Binding
**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## Nuget
* `Install-Package SVProgressHUD`
*## Build
* `make`
* Output: `build/SVProgressHUD.dll`## Publish new version to Nuget
* 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 library
* `make nuget` : Run nuget commandline to push new version
* `make clean-all` : Clean all build files## Sample Code
```csharp
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();
}
}
}
}
```* Docs: