I had a code snippet as shown below that used to work just fine until I migrated to Swift 3, to be able to draw a border around the UIView. I just want to be able to do this at the bottom of the UIView.
let border = CALayer()
border.frame = CGRect(x: 0, y: self.basicDetailsView.frame.height - 2, width: self.basicDetailsView.frame.width, height: 2)
border.backgroundColor = UIColor.gray().cgColor
self.basicDetailsView.layer.addSublayer(border)