maxep / MXSegmentedControl

Simple Segmented Control
MIT License
140 stars 44 forks source link

How can i set width based on segment title? #25

Closed bhavikvwteam closed 3 years ago

bhavikvwteam commented 3 years ago

In attached screenshot you can see segment title is getting cut from middle due to large title. How can i make sure that it does not get cut by applying segment width based on text?

Screenshot 2020-12-30 at 12 25 10 PM

Crying-Goose commented 3 years ago

I'm looking for a way. First of all, I'm trying to extend the MXSegmentedControl.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maxep commented 3 years ago

That should be working by default! If you do not set the segmentControl.segmentWidth property, the width is computed according the content. Do you have a code snippet to share?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.