MPDC.Xamarin.iOS.Pastel 1.1.1

PastelForXamarinIOS

Gradient Animations on Xamarni.iOS

Install-Package MPDC.Xamarin.iOS.Pastel -Version 1.1.1
dotnet add package MPDC.Xamarin.iOS.Pastel --version 1.1.1
<PackageReference Include="MPDC.Xamarin.iOS.Pastel" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MPDC.Xamarin.iOS.Pastel --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
 public override void ViewDidLoad()
 {
      base.ViewDidLoad();

      // Initializing pastelView object
      var pastelView = new MPDCPastelXamarinIOS.PastelView(View.Bounds);

      pastelView.AnimationDuration = 2.0;

      // init start point and end point
      pastelView.StartPoint = PastelPoint.BottomLeft.Point();
      pastelView.EndPoint = PastelPoint.TopRight.Point();

      // seting  colors
      pastelView.SetColors(PastelGradient.WinterNeva.Colors());

      // pastelView.AddColor(SecondGradientColor); 

      pastelView.StartAnimation();
      View.InsertSubview(pastelView,0);
 }

You need to include MPDCPastelXamarinIOS.Extensions namespace to use Colors and Point extension methods.

In PastelGradient enum, we have some custom gradient colors

Warflame
NightFade
SpringWarmth
JuicyPeach
YoungPassion
LadyLips
SunnyMorning
RainyAshville
FrozenDreams
WinterNeva
You can use this custom colors, or feel free to add some more gradient colors.

In SetColors method you can implement and add your own colors array.

 public override void ViewDidLoad()
 {
      base.ViewDidLoad();

      // Initializing pastelView object
      var pastelView = new MPDCPastelXamarinIOS.PastelView(View.Bounds);

      pastelView.AnimationDuration = 2.0;

      // init start point and end point
      pastelView.StartPoint = PastelPoint.BottomLeft.Point();
      pastelView.EndPoint = PastelPoint.TopRight.Point();

      // seting  colors
      pastelView.SetColors(PastelGradient.WinterNeva.Colors());

      // pastelView.AddColor(SecondGradientColor); 

      pastelView.StartAnimation();
      View.InsertSubview(pastelView,0);
 }

You need to include MPDCPastelXamarinIOS.Extensions namespace to use Colors and Point extension methods.

In PastelGradient enum, we have some custom gradient colors

Warflame
NightFade
SpringWarmth
JuicyPeach
YoungPassion
LadyLips
SunnyMorning
RainyAshville
FrozenDreams
WinterNeva
You can use this custom colors, or feel free to add some more gradient colors.

In SetColors method you can implement and add your own colors array.

Release Notes

Initial Release

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.1.1 321 1/31/2018
1.1.0 337 1/30/2018
1.0.6604.22769 226 1/30/2018