enabledShadows does not work
Closed this issue · 2 comments
Coco9077 commented
Hi, I set enableShadow= true but the shadows not show! ( I have imported BEMAnalogClock in my swiftProject (swift 2.2) ). What is the problem?
`var instanceClock = BEMAnalogClockView(frame:CGRectMake(20,40,100,100))
instanceClock.delegate = self;
instanceClock.setTimeViaTouch = false;
instanceClock.currentTime = true;
instanceClock.enableShadows = true
instanceClock.realTime = true;
instanceClock.faceBackgroundAlpha = 0.0
instanceClock.borderAlpha = 0.0
instanceClock.enableGraduations = false
instanceClock.enableDigit = true;
instanceClock.digitColor = UIColor.blackColor()
instanceClock.hourHandWidth = 1.5
instanceClock.hourHandLength = 15
instanceClock.minuteHandLength = 30
instanceClock.minuteHandWidth = 1.5
instanceClock.secondHandAlpha = 0
instanceClock.minuteHandOffsideLength = 0;
instanceClock.hourHandOffsideLength = 0;
instanceClock.userInteractionEnabled = false
`
werediver commented
I would presume that some of the zeroed -Alpha properties make the shadow completely translucent and thus invisible.
Boris-Em commented
@Coco9077 would you mind confirming @werediver's presumption?