Add a warning to the media caption composer. (#3574)

We can now remove the feature flag.
This commit is contained in:
Doug
2024-11-29 16:23:20 +00:00
committed by GitHub
parent 8d6909982d
commit 34f1c61fe2
17 changed files with 106 additions and 43 deletions
@@ -14,7 +14,7 @@ enum MediaUploadPreviewScreenViewModelAction {
struct MediaUploadPreviewScreenViewState: BindableState {
let url: URL
let title: String?
let showMediaCaptionComposer: Bool
let shouldShowCaptionWarning: Bool
var shouldDisableInteraction = false
var bindings = MediaUploadPreviewScreenBindings()
@@ -23,6 +23,8 @@ struct MediaUploadPreviewScreenViewState: BindableState {
struct MediaUploadPreviewScreenBindings: BindableState {
var caption = NSAttributedString()
var presendCallback: (() -> Void)?
var isPresentingMediaCaptionWarning = false
}
enum MediaUploadPreviewScreenViewAction {