Articles in this section
Category / Section

How to resolve SfGauge not rendering issue in Xamarin.Forms for iOS in CircularGauge ?

1 min read

Description:

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);
        }
 

 

Conclusion

I hope you enjoyed learning about how to resolve SfGauge not rendering issue in Xamarin.Forms for iOS in CircularGauge.

You can refer to our Xamarin.Form CircularGauge 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 forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied