Skip to content

Commit 17d4a25

Browse files
authored
Merge pull request #13 from lauramarson/viewChanges
View changes
2 parents 45da80a + 58003d1 commit 17d4a25

5 files changed

Lines changed: 34 additions & 9 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

AnimalsApp/AnimalsApp/Views/Components/AnimalTableViewCell.xib

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
<objects>
1717
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
1818
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
19-
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Animal" rowHeight="98" id="KGk-i7-Jjw" customClass="AnimalTableViewCell" customModule="AnimalsApp" customModuleProvider="target">
20-
<rect key="frame" x="0.0" y="0.0" width="302" height="98"/>
19+
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Animal" rowHeight="96" id="KGk-i7-Jjw" customClass="AnimalTableViewCell" customModule="AnimalsApp" customModuleProvider="target">
20+
<rect key="frame" x="0.0" y="0.0" width="302" height="96"/>
2121
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
22-
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
23-
<rect key="frame" x="0.0" y="0.0" width="302" height="98"/>
22+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
23+
<rect key="frame" x="0.0" y="0.0" width="302" height="96"/>
2424
<autoresizingMask key="autoresizingMask"/>
2525
<subviews>
2626
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="imagePlaceholder" translatesAutoresizingMaskIntoConstraints="NO" id="lNA-6P-Vee">
2727
<rect key="frame" x="20" y="8" width="80" height="80"/>
2828
<constraints>
29-
<constraint firstAttribute="height" constant="80" id="WD3-HZ-qNY"/>
29+
<constraint firstAttribute="height" constant="80" id="ZEC-PQ-WcJ"/>
3030
<constraint firstAttribute="width" constant="80" id="kcM-BZ-81T"/>
3131
</constraints>
3232
</imageView>
@@ -64,7 +64,7 @@
6464
<constraint firstItem="687-rn-Ydp" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="fsl-xq-9yj" secondAttribute="trailing" constant="5" id="Fot-hl-ITO"/>
6565
<constraint firstItem="lNA-6P-Vee" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="IB3-A5-MoG"/>
6666
<constraint firstItem="fsl-xq-9yj" firstAttribute="centerY" secondItem="lNA-6P-Vee" secondAttribute="centerY" id="W6t-ob-L4I"/>
67-
<constraint firstItem="lNA-6P-Vee" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="jhP-MT-FBj"/>
67+
<constraint firstItem="lNA-6P-Vee" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" priority="999" constant="9" id="jhP-MT-FBj"/>
6868
<constraint firstAttribute="bottom" secondItem="lNA-6P-Vee" secondAttribute="bottom" constant="8" id="mNv-vS-OgZ"/>
6969
<constraint firstAttribute="trailing" secondItem="687-rn-Ydp" secondAttribute="trailing" constant="15" id="oaJ-Ve-0pr"/>
7070
<constraint firstItem="fsl-xq-9yj" firstAttribute="leading" secondItem="lNA-6P-Vee" secondAttribute="trailing" constant="15" id="sdK-OL-XPW"/>
@@ -78,17 +78,17 @@
7878
<outlet property="favoriteButton" destination="687-rn-Ydp" id="wgR-Fp-8k1"/>
7979
<outlet property="nameLabel" destination="cyH-cm-d20" id="Gts-qf-dcs"/>
8080
</connections>
81-
<point key="canvasLocation" x="118.84057971014494" y="68.303571428571431"/>
81+
<point key="canvasLocation" x="120.28985507246378" y="66.294642857142861"/>
8282
</tableViewCell>
8383
</objects>
8484
<resources>
8585
<image name="addFavorite" width="22.5" height="21.5"/>
8686
<image name="imagePlaceholder" width="300" height="300"/>
8787
<namedColor name="blueTextColor">
88-
<color red="0.082352941176470587" green="0.54509803921568623" blue="0.74901960784313726" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
88+
<color red="0.082000002264976501" green="0.54500001668930054" blue="0.74900001287460327" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
8989
</namedColor>
9090
<namedColor name="grayTextColor">
91-
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
91+
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
9292
</namedColor>
9393
</resources>
9494
</document>

AnimalsApp/AnimalsApp/Views/HomeViewController/HomeViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ extension HomeViewController: UITableViewDataSource {
7575
}
7676

7777
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
78+
7879
guard let cell = tableView.dequeueReusableCell(withIdentifier: "Animal", for: indexPath) as? AnimalTableViewCell else {
7980
return UITableViewCell()
8081
}

0 commit comments

Comments
 (0)