             context?.addLine(to: CGPoint(x: breadth - offset, y: length - cutoff))
             context?.addLine(to: CGPoint(x: breadth - offset, y: cutoff))
             context?.addLine(to: CGPoint(x: breadth/2, y: offset))
+            
+        default:
+            break
         }
 
         context?.closePath()

        case .vertical:
            length = h
            breadth = w
        }
        
        super.init(frame: frame)

    }
    
    required init?(coder aDecoder: NSCoder) {
        orientation = .null
        
        super.init(coder: aDecoder)
        self.backgroundColor = UIColor.clear
        
        let h = self.frame.size.height
        let w = self.frame.size.width
        
        orientation = w > h ? .horizontal : .vertical
        switch orientation {
        case .horizontal:
            length = w
            breadth = h
        case .vertical:
            length = h
            breadth = w
        default:
            length = w
            breadth = h
        }
    }
    
    override func draw(_ rect: CGRect) {
