[iOS]Triangle shape with UIBezierPath in drawRect not working – Ios swift
I am trying to learn building custom shapes using UIBezierPath and I am trying to build a simple triangle. Below is the code I am using class ViewController: UIViewController { let customView = CustomTraingleView(frame: CGRectZero) override func viewDidLoad() { super.viewDidLoad()…