         }
     }
     
-    func layoutRight(_ superView: UIView) {
-        superView.addSubview(right);
+    func addRightBorder() {
+        view.addSubview(right);
         right.snp.makeConstraints { (make) in
             make.top.equalToSuperview()
             make.right.equalToSuperview()

import SnapKit

struct BorderView {
    let top: UIView
    let left: UIView
    let right: UIView
    let bottom: UIView
    let width: CGFloat
    
    init(width: CGFloat = 2) {
        top = UIView()
        left = UIView()
        right = UIView()
        bottom = UIView()
        self.width = width
        
        top.translatesAutoresizingMaskIntoConstraints = false
        left.translatesAutoresizingMaskIntoConstraints = false
        right.translatesAutoresizingMaskIntoConstraints = false
        bottom.translatesAutoresizingMaskIntoConstraints = false
    }
    
    func layoutTop(_ superView: UIView) {
        superView.addSubview(top);
        top.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.left.equalToSuperview()

        }
    }
    
    func addLeftBorder() {
        view.addSubview(left);
        left.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.left.equalToSuperview()
