I\'m trying to implement this design but all solutions I have browsed won\'t work and from what I understand it could be because of the spacing between the cells and the UIT
You have to make a UIView
inside UITableViewCell
and work on that view.
FOR SHADOW I AM USING THIS IN UITableViewCell
CLASS:-
viewDummy.addShadow() //use from any view
extension UIView {
func addShadow(){
self.layer.shadowColor = UIColor.blackColor().CGColor
self.layer.shadowOpacity = 0.5
self.layer.shadowRadius = 2.0
self.layer.shadowOffset = CGSizeMake(1.0, 1.0)
}
}