@@ -101,7 +101,7 @@ class PostViewCell: UITableViewCell
101 //nameStackView.height(46)
101 //nameStackView.height(46)
102 nameStackView.edgesToSuperview(excluding: .bottom, insets: .left(20) + .right(20) + .top(8))
102 nameStackView.edgesToSuperview(excluding: .bottom, insets: .left(20) + .right(20) + .top(8))
104− let mainView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 50))
104+ let mainView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 30))
106 let scrollView = UIScrollView()
106 let scrollView = UIScrollView()
@@ -116,10 +116,10 @@ class PostViewCell: UITableViewCell
116 for hash in post!.hashtags {
116 for hash in post!.hashtags {
117 let button = UIButton()
117 let button = UIButton()
118 button.setTitle("#" + hash, for: .normal)
118 button.setTitle("#" + hash, for: .normal)
119− button.backgroundColor = #colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1)
119+ //button.backgroundColor = #colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1)
120− button.layer.cornerRadius = 10
120+ //button.layer.cornerRadius = 10
121− button.titleLabel?.font = UIFont.systemFont(ofSize: 14)
121+ button.titleLabel?.font = UIFont.monospacedDigitSystemFont(ofSize: 15, weight: .semibold)
122− button.setTitleColor(.black, for: .normal)
122+ button.setTitleColor(#colorLiteral(red: 0, green: 0.4784313725, blue: 1, alpha: 1), for: .normal)
123 buttons.append(button)
123 buttons.append(button)
@@ -128,18 +128,22 @@ class PostViewCell: UITableViewCell
128 scrollView.addSubview(stackViewHashTags)
128 scrollView.addSubview(stackViewHashTags)
130 stackViewHashTags.axis = .horizontal
130 stackViewHashTags.axis = .horizontal
131− stackViewHashTags.alignment = .center
131+ stackViewHashTags.spacing = 17
132− stackViewHashTags.spacing = 20
134− stackViewHashTags.edgesToSuperview(insets: .left(20) + .top(10) + .right(20))
133+ // edgesToSuperview(insets: .left(20) + .top(10) + .right(20))
134+ stackViewHashTags.horizontalToSuperview(insets: .left(20) + .right(20))
135+ stackViewHashTags.verticalToSuperview()
137+ stackViewHashTags.distribution = .fillProportionally
138+ stackViewHashTags.alignment = .center
136− scrollView.contentSize = CGSize(width: 500, height: 50)
140+ scrollView.contentSize = CGSize(width: 500, height: 30)
139 contentView.addSubview(mainView)
143 contentView.addSubview(mainView)
140 mainView.edgesToSuperview(excluding: [.top, .bottom])
144 mainView.edgesToSuperview(excluding: [.top, .bottom])
141− mainView.topToBottom(of: nameStackView)
145+ mainView.topToBottom(of: nameStackView, offset: 5)
142− mainView.height(50)
146+ mainView.height(30)
144 let stackView = MyStackView(arrangedSubviews: views)
148 let stackView = MyStackView(arrangedSubviews: views)
145 stackView.isFull = full
149 stackView.isFull = full
@@ -148,7 +152,7 @@ class PostViewCell: UITableViewCell
148 if !full {
152 if !full {
149 stackView.height(300, relation: .equalOrLess, isActive: true)
153 stackView.height(300, relation: .equalOrLess, isActive: true)
151− stackView.topToBottom(of: mainView, offset: 16, relation: .equal, isActive: true)
155+ stackView.topToBottom(of: mainView, offset: 0, relation: .equal, isActive: true)
152 stackView.edgesToSuperview(excluding: [.top, .bottom], insets: .left(16) + .right(16))
156 stackView.edgesToSuperview(excluding: [.top, .bottom], insets: .left(16) + .right(16))
154 let commentsSharesStackView = UIStackView(arrangedSubviews: [ commentsLabel, shareButton])
158 let commentsSharesStackView = UIStackView(arrangedSubviews: [ commentsLabel, shareButton])