Skip to content

Commit 6db614f

Browse files
committed
Comments resolved
1 parent 775469c commit 6db614f

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// CategoryListView.swift
3+
// DeliveryApp
4+
//
5+
// Created by Luciano Berchon on 22/07/22.
6+
//
7+
8+
import Foundation

solutions/devsprint-vinicius-carvalho-3/DeliveryApp/Screens/Components/RestaurantCell.swift

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import Foundation
99
import UIKit
1010

1111
class RestaurantCell: UITableViewCell {
12+
private struct Configurations {
13+
static let imageSize: CGSize = .init(width: 56, height: 56)
14+
static let stackViewSpacing: CGFloat = 8
15+
}
16+
1217
private lazy var stackViewCell: UIStackView = {
1318
let stackView = UIStackView()
1419
stackView.axis = .horizontal
@@ -71,18 +76,7 @@ class RestaurantCell: UITableViewCell {
7176
}
7277

7378
extension RestaurantCell: ViewCode {
74-
private struct Configurations {
75-
static let imageSize: CGSize = .init(width: 56, height: 56)
76-
static let stackViewSpacing: CGFloat = 8
77-
}
78-
7979
func setupSubviews() {
80-
stackViewText.addArrangedSubview(title)
81-
stackViewText.addArrangedSubview(subtitle)
82-
83-
stackViewCell.addArrangedSubview(image)
84-
stackViewCell.addArrangedSubview(stackViewText)
85-
8680
contentView.addSubview(stackViewCell)
8781
}
8882

0 commit comments

Comments
 (0)