-
Notifications
You must be signed in to change notification settings - Fork 81
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
can we set image (dynamic size --> fit to slice segment frame) and text in center for slice for any no. of slices in wheel? #18
Comments
Yes. |
@sh-khashimov can we handle slice text ad image with vertical offset in the center of the slice of the wheel or with something else can you provide some suggestion or help then it will be helpful. |
Did you try set TextPreferences.alignment to .center? |
@sh-khashimov thanks for the quick reply, I'm using these for slice configuration like in your library example
Wherein background color I set UIColor with pattern image for square purple layer With these, it can be possible to get desired output? is there any option for a set size of image for a background image? like imageSize preferences because I'm setting image dynamically with a slice width e.g., if there is only 4 slice then set cross image according to slice's frame |
Take a look at the example project, which you can see at |
Hi, is it possible to set image (dynamic size --> fit to slice segment frame) and text in the center of the slice for any no. of slices in the wheel? I actually tried and get the following output but not able to set image and text in the center but with a vertical offset, we can not get desired output. Any help would be appreciated. can you provide some guidance?
The text was updated successfully, but these errors were encountered: