I want to change the shape of the dot to a rounded rectangle which ever tab is selected.
First Image is the current dot style paging:

But I want it to change to 2nd Image kind of:

I want to change the shape of the dot to a rounded rectangle which ever tab is selected.
First Image is the current dot style paging:

But I want it to change to 2nd Image kind of:

Thaks to YouTuber Kavsoft and to his video we know how to do it.
This View allows for some small customisation, you'll need to get your hand dirty if you want more, of course, and it is only compatible starting from
iOS 17. Here's the code:The
clipEdgesBoolean property avoid the animation when reaching the end of the carousel when set to true in case you are wondering.You can use it like this:
Where
colorsis an array of colors:Here's the result:
If you are looking to support older iOS versions you can check this other video of his.
Let me know your thoughts!