Skip to content

Commit 58003d1

Browse files
committed
add imageView border in tableViewCell
1 parent 2f09d80 commit 58003d1

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xD9",
9+
"green" : "0xD9",
10+
"red" : "0xD9"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}

AnimalsApp/AnimalsApp/DesignSystem/Colors.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ import UIKit
1010
extension UIColor {
1111
static let blueTabBarColor: UIColor? = UIColor(named: "blueTabBarColor")
1212
static let blueTextColor: UIColor? = UIColor(named: "blueTextColor")
13+
14+
static let lightGray: UIColor? = UIColor(named: "lightGray")
1315

1416
}

AnimalsApp/AnimalsApp/Views/Components/AnimalTableViewCell.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class AnimalTableViewCell: UITableViewCell {
4747
self.descriptionLabel.text = animal.description
4848

4949
self.animalImage.layer.cornerRadius = 10
50+
self.animalImage.layer.borderWidth = 0.5
51+
self.animalImage.layer.borderColor = UIColor.lightGray?.cgColor
5052

5153
let imageURL = animal.imageURL
5254
let placeholderImage = UIImage.imagePlaceHolder

0 commit comments

Comments
 (0)