Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
This repository was 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

@PatrickRyder

Description

@PatrickRyder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions