I have a UIButton which is very similar to the standard iOS keyboard alphabet button.
UIButton
I am not sure how to create a shadow only for the bottom layer li
View bottom shadow swift 4.2
viewTop.layer.shadowOffset = CGSize(width: 0, height: 1) viewTop.layer.shadowColor = UIColor.lightGray.cgColor viewTop.layer.shadowOpacity = 1 viewTop.layer.shadowRadius = 5 viewTop.layer.masksToBounds = false