I rebuilt a Dribbble shot by Danilo Tanic (credit below).
The project has a Loom video which explains how everything works. There's a bit of custom code to style the tabs and make it easier to edit in the designer.
If you have any questions comment on the Loom video and I will get back to you there.
Designs - https://dribbble.com/shots/16545424-iOS-Onboarding-and-Subscription