Pavel Stepanovpavelstepanov.hashnode.dev·Jul 7, 2022Make dynamic dashed border in Swift: avoid lumping and watch original cat memesLet's imagine you need to add a dashed border to a view. Normally, you would write code like that. First iteration private func addUglyDashedBorder() { borderLayer = CAShapeLayer() let viewRect = CGRect(x: 0, y: 0, width: frame.size.width, he...3 likes·287 readsSwift