Regsiter in your MauiProgram class:
var builder = MauiApp.CreateBuilder();
builder
.UseMauiCommunityToolkit()
.UseMauiTouchEffect()
.
.
.
Reach out to Xamarin Community Toolkit for samples: https://github.com/xamarin/XamarinCommunityToolkit/blob/main/samples/XCT.Sample/Pages/Effects/TouchEffectPage.xaml
https://www.youtube.com/watch?v=BcFlZMhPmVk&t=834s&ab_channel=GeraldVersluis