MonoMobile.Views.RefreshTableHeaderView.Flip C# (CSharp) Method

Flip() public method

public Flip ( bool animate ) : void
animate bool
return void
		public void Flip(bool animate)
		{
			UIView.BeginAnimations(null);
			UIView.SetAnimationDuration(animate ? .18f : 0);
			_ArrowView.Layer.Transform = IsFlipped 
				? CATransform3D.MakeRotation((float)Math.PI, 0, 0, 1) 
				: CATransform3D.MakeRotation((float)Math.PI * 2, 0, 0, 1);
				
			UIView.CommitAnimations();
			IsFlipped = !IsFlipped;
		}