public TouchView() { _visualManager = new TouchVisualManager(Device.iOS); StateChanged += (sender, args) => ForceStateChanged(); if (Device.RuntimePlatform == Device.iOS) { GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(() => _visualManager.OnTapped(this)) }); } }
public TouchEff() : base($"{nameof(TouchEffect)}.{nameof(TouchEff)}") { _visualManager = new TouchVisualManager(); StateChanged += (sender, args) => ForceUpdateState(); }