UIView-Border Customize Position UIView border usage let view = UIView() view.borderPosition = [.Left,.Bottom] // That's all. Todo support AutoLayout