Skip to content

Commit 2b51b2e

Browse files
Juliane FerreiraJulianeGF
authored andcommitted
Corrige pontos mencionados nos comentarios
1 parent 3b8828d commit 2b51b2e

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

solutions/devsprint-andre-nogueira-1/RealEstateApp/Screens/PropertyInfo/PropertyInfoView.swift

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
class PropertyInfoView: UIView {
3+
class PropertyInfoView: BaseView, ViewCodable {
44

55
private lazy var priceLabel: UILabel = {
66
let label = UILabel()
@@ -37,24 +37,14 @@ class PropertyInfoView: UIView {
3737
label.translatesAutoresizingMaskIntoConstraints = false
3838
return label
3939
}()
40-
41-
init() {
42-
super.init(frame: .zero)
43-
self.hierarchy()
44-
self.setConstraints()
45-
}
46-
47-
required init?(coder: NSCoder) {
48-
fatalError("init(coder:) has not been implemented")
49-
}
5040

51-
func hierarchy() {
41+
func setUpHierarchy() {
5242
[priceLabel, buildingLabel, infoLabel, addressLabel].forEach {
5343
addSubview($0)
5444
}
5545
}
56-
57-
func setConstraints() {
46+
47+
func setUpConstraints() {
5848
NSLayoutConstraint.activate([
5949
priceLabel.topAnchor.constraint(equalTo: bottomAnchor, constant: 10),
6050
priceLabel.rightAnchor.constraint(equalTo: rightAnchor, constant: -16),

solutions/devsprint-andre-nogueira-1/RealEstateApp/Screens/PropertyList/PropertyListViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ class PropertyListViewController: UIViewController {
5252
}
5353
}
5454
}
55-

0 commit comments

Comments
 (0)