File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
solutions/devsprint-vinicius-carvalho-3/DeliveryApp/Screens/Components Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1+ //
2+ // CategoryListView.swift
3+ // DeliveryApp
4+ //
5+ // Created by Luciano Berchon on 22/07/22.
6+ //
7+
8+ import Foundation
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import Foundation
99import UIKit
1010
1111class 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
7378extension 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
You can’t perform that action at this time.
0 commit comments