Boris-Em / BEMAnalogClock

iOS library to create elegant, interactive clocks.
MIT License
473 stars 68 forks source link

enabledShadows does not work #26

Closed Coco9077 closed 8 years ago

Coco9077 commented 8 years ago

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 8 years ago

I would presume that some of the zeroed -Alpha properties make the shadow completely translucent and thus invisible.

Boris-Em commented 8 years ago

@Coco9077 would you mind confirming @werediver's presumption?