Create a rectangle with just two rounded corners in swift?
Update: See this answer below for Swift 4 / iOS 11 which is much, much easier Here’s a quick Swift 3 extension you can use to do rounding and optional borders. Note: if you’re using autolayout, you may need to call this in one of the view lifecycle callbacks like viewDidLayoutSubviews or layoutSubviews after the … Read more