Skip to content

deda9/UIMultiBorderImageView

Repository files navigation

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)])