Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

XFGloss Background Gradient Fails on iOS with Xamarin.Forms V16.8.0 #44

Open
PatrickRyder opened this issue Jan 18, 2021 · 0 comments
Open

Comments

@PatrickRyder
Copy link

XFGloss does not seem to be able to set the colour of the iOS navigation bar since I updated Xamarin.Forms to V16.8.0.

The following is an abbreviated way that I set a background gradient on my screens:

public abstract class ViewBase : ContentPage
{
	private XFGloss.Gradient GradientBackground = new XFGloss.Gradient()
	{
		Rotation = 0,
		Steps = new XFGloss.GradientStepCollection()
		{
			new XFGloss.GradientStep( Color.FromHex( "#888888"), 0.0 ),
			new XFGloss.GradientStep( Color.FromHex( "#777777"), 0.15),
			new XFGloss.GradientStep( Color.FromHex( "#666666"), 0.6 ),
			new XFGloss.GradientStep( Color.FromHex( "#555555"), 0.9 ),
			}
		};

	public ViewBase()
	{
		BackgroundColor = Colours.MainBackground;
		XFGloss.ContentPageGloss.SetBackgroundGradient( this, GradientBackground );
		Title = "My Content Page";
	}
}

This still compiles and runs without error but the navigation bar on iOS now remains the default white colour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant