Add post-visibility to notifications (#594)
This commit is contained in:
parent
2957408c0a
commit
bbda8c41b6
|
@ -99,6 +99,9 @@ extension NotificationView {
|
|||
.store(in: &disposeBag)
|
||||
// timestamp
|
||||
viewModel.timestamp = notification.createAt
|
||||
|
||||
viewModel.visibility = notification.status?.visibility ?? ._other("")
|
||||
|
||||
// notification type indicator
|
||||
Publishers.CombineLatest3(
|
||||
notification.publisher(for: \.typeRaw),
|
||||
|
|
|
@ -299,9 +299,6 @@ extension NotificationView {
|
|||
authorSecondaryMetaContainer.addArrangedSubview(dateTrailingDotLabel)
|
||||
dateTrailingDotLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
|
||||
authorSecondaryMetaContainer.addArrangedSubview(dateTrailingDotLabel)
|
||||
dateTrailingDotLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
|
||||
authorSecondaryMetaContainer.addArrangedSubview(visibilityIconImageView)
|
||||
NSLayoutConstraint.activate([
|
||||
visibilityIconImageView.heightAnchor.constraint(equalTo: authorUsernameLabel.heightAnchor),
|
||||
|
|
Loading…
Reference in New Issue