Set the shadowOffset , shadowOpacity and shadowRadius , and you should get what you are looking for. Try to do this for a shadow project that is directly “under” a 5-pixel blur layer, which with the right color can also look like a glow:
CALayer *layer = myView.layer; layer.shadowOpacity = 0.50; layer.shadowRadius = 5.0; layer.shadowOffset = (CGSize){.width=0.0,.height=0.0};
gschandler
source share