joshdhenry / SpinWheelControl

An inertial spinning wheel UI control that allows selection of an item. Cocoapod written in Swift.
BSD 3-Clause "New" or "Revised" License
73 stars 25 forks source link

Changing stroke color and text color don't work #21

Open MohammmadA123 opened 5 years ago

MohammmadA123 commented 5 years ago

When ever i try changing Stroke color or Text color in the WedgeForSliceAtIndex It doesn't change anything in the app

func wedgeForSliceAtIndex(index: UInt) -> SpinWheelWedge { let wedge = SpinWheelWedge()

    wedge.shape.fillColor = colorPalette[Int(index)].cgColor
    wedge.label.text = prizes[Int(index)]
    wedge.shape.strokeColor = UIColor.black.cgColor
    wedge.label.textColor = UIColor.black

    return wedge
}