Create Label in swift programmatically
let colorLable = UILabel.init(frame: CGRect(x: 10, y: 10, width: screenWidth-20, height: 30));
colorLable.backgroundColor = UIColor.lightGray;
colorLable.text = colorArray [indexPath.row];
colorLable.textColor = UIColor.green;
colorLable.textAlignment = NSTextAlignment.center;
cell.contentView.addSubview(colorLable);