How to resolve SfGauge not rendering issue in Xamarin.Forms for iOS LinearGauge ?
escription:
Xamarin does not load the iOS renderer assemblies by default in Xamarin.Forms. So, to solve this, you have to manually load it by creating an instance of SfGaugeRenderer class in the respective projects as mentioned below.
iOS Project
Create an instance of SfGaugeRenderer in FinishedLaunching overridden method of AppDelegate class in iOS Project as shown below,
C#:
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ... //Before 15.3.0.26 assemblies please use the below renderers new SfGaugeRenderer(); // For CircularGauge new SfLinearGaugeRenderer (); // For LinearGauge new SfDigitalGaugeRenderer ();// For DigitalGauge //After 15.3.0.26 assemblies please use the below renderers Syncfusion.SfGauge.XForms.iOS.SfGaugeRenderer.Init();//CircularGauge Syncfusion.SfGauge.XForms.iOS.SfLinearGaugeRenderer.Init();//Lineargauge Syncfusion.SfGauge.XForms.iOS.SfDigitalGaugeRenderer.Init();//DigitalGauge ... return base.FinishedLaunching(app, options); }
I hope you enjoyed learning about how toresolve SfGauge not rendering issue in Xamarin.Forms for iOS LinearGauge.
You can refer to our Xamarin.Form LinearGauge feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!