Reputation: 109
For example, something like this:
Upvotes: 2
Views: 105
Reputation: 6067
You can use Such way with UIColor.init(patternImage:UIImage)
self.imageView.layer.cornerRadius = 30
self.imageView.layer.borderWidth = 20
self.imageView.layer.borderColor = UIColor.init(patternImage: UIImage(named: "images.jpeg")!).cgColor
self.imageView.clipsToBounds = true
here is pattern image Pattern
Upvotes: 2