Closed farazhaider88 closed 1 year ago
i m still getting this issue.... i also try to put this last code in dispatch , some times it works fine other not.
DispatchQueue.main.async {
self.wheelControl.rotate(toIndex: self.selectedIndex)
}
}
also i try to change code like this too....
self.wheelControl.slices[self.selectedIndex].backgroundColor = UIColor().colorWithHexString(hexString: self.sliceSelectedColorVarient)
can u check what im doing wrong?
Dear @sh-khashimov thanks for creating this library, its very useful.
I'm facing two issues right now can you please let me know how to solve them.
the first thing is that i need to text and position like that as image i did it with some hardcoding values so is there any better solution for that as you can see code its not look good.
second issue is that im getting correct value as you mention in other solve issue the value after rotation, and pin is also correcting a correct value but now i have to update the color for the winning and losing slices for this i try to do add update slice function and checking condition, the issue is that color is updating for all but now position is shifting from the pin. like here the pin should point "Graphic" can you let me know what im doing wrong here.
here is the code which im using right now:
`import UIKit import SwiftFortuneWheel
class VariousWheelPodiumViewController: UIViewController {
}`