Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 845 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 845 Bytes

UIMultiBorderImageView

You can add more than one border for UIImageView

topImageView.layer.cornerRadius = topImageView.frame.size.width/2
topImageView.clipsToBounds = true
topImageView.apply(borders: [Border(width: 5, color: UIColor.green),
                             Border(width: 5, color: UIColor.blue)])

bottomImageView.apply(borders: [Border(width: 5, color: UIColor.red),
                                Border(width: 5, color: UIColor.yellow),
                                Border(width: 5, color: UIColor.green),
                                Border(width: 5, color: UIColor.blue)])