chore: update post content sensitive style
This commit is contained in:
parent
771c8327b3
commit
18a902c8ae
|
@ -307,8 +307,7 @@ extension StatusView.ViewModel {
|
|||
|
||||
if let content = content {
|
||||
statusView.contentMetaText.configure(
|
||||
content: content,
|
||||
isRedactedModeEnabled: !isContentReveal
|
||||
content: content
|
||||
)
|
||||
statusView.contentMetaText.textView.accessibilityLabel = content.string
|
||||
statusView.contentMetaText.textView.accessibilityTraits = [.staticText]
|
||||
|
@ -318,6 +317,8 @@ extension StatusView.ViewModel {
|
|||
statusView.contentMetaText.textView.accessibilityLabel = ""
|
||||
}
|
||||
|
||||
statusView.contentMetaText.textView.alpha = isContentReveal ? 1 : 0 // keep the frame size and only display when revealing
|
||||
|
||||
statusView.setSpoilerOverlayViewHidden(isHidden: isContentReveal)
|
||||
|
||||
let image = isContentReveal ? UIImage(systemName: "eye.slash.fill") : UIImage(systemName: "eye.fill")
|
||||
|
@ -327,12 +328,13 @@ extension StatusView.ViewModel {
|
|||
}
|
||||
.store(in: &disposeBag)
|
||||
|
||||
// $isSensitive
|
||||
// .sink { isSensitive in
|
||||
// guard isSensitive else { return }
|
||||
// statusView.setContentSensitiveeToggleButtonDisplay()
|
||||
// }
|
||||
// .store(in: &disposeBag)
|
||||
$isSensitive
|
||||
.sink { isSensitive in
|
||||
guard isSensitive else { return }
|
||||
statusView.setContentSensitiveeToggleButtonDisplay()
|
||||
}
|
||||
.store(in: &disposeBag)
|
||||
|
||||
// // visibility
|
||||
// Publishers.CombineLatest(
|
||||
// $visibility,
|
||||
|
|
Loading…
Reference in New Issue