Skip to content

Instantly share code, notes, and snippets.

View ucwealth's full-sized avatar

Uche Okeke ucwealth

View GitHub Profile
import UIKit
class RectangularDashedView: UIView {
@IBInspectable var viewCornerRadius: CGFloat = 0 {
didSet {
layer.cornerRadius = viewCornerRadius
layer.masksToBounds = viewCornerRadius > 0
}
}