can u guys tell me how to remove that highlight it has? i cant find a way to do it.
this is how it is working:

can u guys tell me how to remove that highlight it has? i cant find a way to do it.
this is how it is working:

Copyright © 2021 Jogjafile Inc.
As I commented when you posted about this previously - heading over to Google (or your favorite search engine) and searching along the lines of
swift custom uisegmentedcontrol... returns many, many examples, discussions, tutorials, etc. You could almost certainly find a pre-built one.It appears you want a segmented control with only an underline -- no borders or highlight or separator line at all.
However, here is a quick, very simple example that looks like what you're trying to do.
We'll create a custom view class, with an embedded
UISegmentedControland an "underline" view. This gives us all the advantages of theUISegmentedControlwithout messing with its internal view structure:and asimple example controller class:
It looks like this:
Note that it will also work with more than 2 segments.