@@ -31,7 +31,7 @@ class PostViewCell: UITableViewCell
31 return label
31 return label
34− let commentsLabel: UILabel = {
34+ let timeLabel: UILabel = {
35 let label = UILabel()
35 let label = UILabel()
36 label.font = UIFont.systemFont(ofSize: 12)
36 label.font = UIFont.systemFont(ofSize: 12)
37 label.textColor = #colorLiteral(red: 0.6000000238, green: 0.6000000238, blue: 0.6000000238, alpha: 1)
37 label.textColor = #colorLiteral(red: 0.6000000238, green: 0.6000000238, blue: 0.6000000238, alpha: 1)
@@ -84,6 +84,7 @@ class PostViewCell: UITableViewCell
84 nameLabel.setTitle("\(post.user?.firstName ?? "") \(post.user?.lastName ?? "")", for: .normal)
84 nameLabel.setTitle("\(post.user?.firstName ?? "") \(post.user?.lastName ?? "")", for: .normal)
85 nameLabel.addTarget(self, action: #selector(displayProfile), for: .touchUpInside)
85 nameLabel.addTarget(self, action: #selector(displayProfile), for: .touchUpInside)
86 fullNameLabel.text = "\(post.authorId)"
86 fullNameLabel.text = "\(post.authorId)"
87 setUpInStackView(isFullVersoin)
88 setUpInStackView(isFullVersoin)
@@ -151,10 +152,11 @@ class PostViewCell: UITableViewCell
152 stackView.edgesToSuperview(excluding: [.top, .bottom], insets: .left(16) + .right(16))
153 stackView.edgesToSuperview(excluding: [.top, .bottom], insets: .left(16) + .right(16))
154− let commentsSharesStackView = UIStackView(arrangedSubviews: [ commentsLabel, shareButton])
155+ let commentsSharesStackView = UIStackView(arrangedSubviews: [ timeLabel, shareButton])
155 contentView.addSubview(commentsSharesStackView)
156 contentView.addSubview(commentsSharesStackView)
157− commentsLabel.text = "14.02.19 в 23:00"
158+ timeLabel.text = post!.convertDateFormatter()
158 commentsSharesStackView.axis = .horizontal
160 commentsSharesStackView.axis = .horizontal
159 commentsSharesStackView.distribution = .equalSpacing
161 commentsSharesStackView.distribution = .equalSpacing
160 commentsSharesStackView.edgesToSuperview(excluding: .top, insets: .bottom(10) + .left(16) + .right(16))
162 commentsSharesStackView.edgesToSuperview(excluding: .top, insets: .bottom(10) + .left(16) + .right(16))