I try to change the headerView's border color to surfing green, but it seems that my code does not work. What I tried is this:
tableView.tableHeaderView?.layer.borderColor = UIColor(red: 105.0/255.0, green: 215.0/255.0, blue: 189.0/255.0, alpha: 1.0).CGColor
tableView.tableHeaderView?.layer.masksToBounds = true
However, the header's border still looks like this:
Here is the Image (Sorry I do not have enough reputation to post images)
As you can see, the border is still black/deep blue.
Any help would be greatly appreciated! Thanks in advance!