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