Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMSegmentedControlTypeTextImages type vertical text and image not align #364

Open
iPermanent opened this issue Feb 3, 2023 · 0 comments

Comments

@iPermanent
Copy link

self.cateSegmentControl.type = HMSegmentedControlTypeTextImages;
self.cateSegmentControl.imagePosition = HMSegmentedControlImagePositionLeftOfText;
self.cateSegmentControl.textImageSpacing = 6.f;
self.cateSegmentControl.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;

Here I added the code however the image and title not align vertical, the title is a little upper than image, I used the svg file, I think this is a bug and maybe we need a function to set titles attributestrings instead of simple string
IMG_CAB37F4F2581-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant