TTFortuneWheel-iOS
TTFortuneWheel-iOS copied to clipboard
Fortune spinning wheel that supports custom drawing.
Is there any option to get the top value or any pointing value after the spinner will stop ? I'm need the index of slice at the top.
I am having issues to use dynamic content , using web result , please help
``` var textAttributes: [NSAttributedString.Key : Any] { let textStyle = NSMutableParagraphStyle() textStyle.alignment = .center let deafultAttributes:[NSAttributedString.Key: Any] = [.font: self.font, .foregroundColor: self.fontColor, .paragraphStyle: textStyle ] return deafultAttributes } ```
@EfraimB : I did implement drawAdditionalGraphics as below: public func drawAdditionalGraphics(in context: CGContext, circularSegmentHeight: CGFloat, radius: CGFloat, sliceDegree: CGFloat) { let iconSize = CGSize(width: 32, height: 32) let iconPadding: CGFloat...
The circular image is coming from server we need to add and rotation and set after certain rotations to particular angle range how can we achieve that
in wheel under label need only one line .for now its multiple line but we need only one line lable in wheel how can i achieved that ?
Give the Slices and give the index to stop ``` spinWheel.startAnimating() DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { self.spinWheel.startAnimating(fininshIndex: self.winIndex, offset: 180) { (finished) in }} ``` Immediately move app to background...
Refactor
I refactor methods and arguments