xfgloss
xfgloss copied to clipboard
XFGloss Background Gradient Fails on iOS with Xamarin.Forms V16.8.0
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.