private void Next(bool animated) { UpdateAnnotationView(animated); var screenSize = UIScreen.MainScreen.Bounds.Size; switch (_stepIndex) { case 0: SpotlightView.Appear(new SpotlightShape.Oval(center: new CGPoint(x: screenSize.Width - 26, y: 42), diameter: 50), 0.25F); break; case 1: SpotlightView.Move(new SpotlightShape.Oval(center: new CGPoint(x: screenSize.Width - 75, y: 42), diameter: 50), 0.25F); break; case 2: SpotlightView.Move(new SpotlightShape.RoundedRect(new CGPoint(x: screenSize.Width / 2, y: 42), new CGSize(120, 40), 4F), 0.25F, SpotlightMoveType.Disappear); break; case 3: SpotlightView.Move(new SpotlightShape.Oval(center: new CGPoint(x: screenSize.Width / 2, y: 200), diameter: 220), 0.25F, SpotlightMoveType.Disappear); break; case 4: DismissViewController(true, null); break; } _stepIndex++; }
private void Layer_SpotlightViewControllerWillDismiss(SpotlightViewController controller, bool animated) { SpotlightView.Disappear(0.25F); }