Function that will initialize the pattern instance.
ID of the SwipeEvents that will be initialized.
the SwipeEvents instance
Function that will initialize the pattern instance.