Skip to content

Commit 49d7e10

Browse files
committed
resolved conflicts
2 parents 82f70fe + 17d4a25 commit 49d7e10

6 files changed

Lines changed: 53 additions & 7 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
@@ -13,4 +13,6 @@ extension UIColor {
1313

1414
static let grayCellFrame: UIColor? = UIColor(named: "grayCellFrame")
1515
static let grayTextColor: UIColor? = UIColor(named: "grayTextColor")
16+
static let lightGray: UIColor? = UIColor(named: "lightGray")
17+
1618
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// Colors.swift
3+
// AnimalsApp
4+
//
5+
// Created by Laura Pinheiro Marson on 16/06/22.
6+
//
7+
8+
import UIKit
9+
10+
extension UIColor {
11+
static let blueTabBarColor: UIColor? = UIColor(named: "blueTabBarColor")
12+
static let blueTextColor: UIColor? = UIColor(named: "blueTextColor")
13+
14+
<<<<<<< HEAD
15+
static let grayCellFrame: UIColor? = UIColor(named: "grayCellFrame")
16+
static let grayTextColor: UIColor? = UIColor(named: "grayTextColor")
17+
=======
18+
static let lightGray: UIColor? = UIColor(named: "lightGray")
19+
20+
>>>>>>> develop
21+
}

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: 7 additions & 7 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>
@@ -63,7 +63,7 @@
6363
<constraint firstItem="687-rn-Ydp" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="fsl-xq-9yj" secondAttribute="trailing" constant="5" id="Fot-hl-ITO"/>
6464
<constraint firstItem="lNA-6P-Vee" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="IB3-A5-MoG"/>
6565
<constraint firstItem="fsl-xq-9yj" firstAttribute="centerY" secondItem="lNA-6P-Vee" secondAttribute="centerY" id="W6t-ob-L4I"/>
66-
<constraint firstItem="lNA-6P-Vee" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="jhP-MT-FBj"/>
66+
<constraint firstItem="lNA-6P-Vee" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" priority="999" constant="9" id="jhP-MT-FBj"/>
6767
<constraint firstAttribute="bottom" secondItem="lNA-6P-Vee" secondAttribute="bottom" constant="8" id="mNv-vS-OgZ"/>
6868
<constraint firstAttribute="trailing" secondItem="687-rn-Ydp" secondAttribute="trailing" constant="15" id="oaJ-Ve-0pr"/>
6969
<constraint firstItem="fsl-xq-9yj" firstAttribute="leading" secondItem="lNA-6P-Vee" secondAttribute="trailing" constant="15" id="sdK-OL-XPW"/>
@@ -77,7 +77,7 @@
7777
<outlet property="favoriteButton" destination="687-rn-Ydp" id="wgR-Fp-8k1"/>
7878
<outlet property="nameLabel" destination="cyH-cm-d20" id="Gts-qf-dcs"/>
7979
</connections>
80-
<point key="canvasLocation" x="118.84057971014494" y="68.303571428571431"/>
80+
<point key="canvasLocation" x="120.28985507246378" y="66.294642857142861"/>
8181
</tableViewCell>
8282
</objects>
8383
<resources>

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)