From a2fdb610130a055882407f1ed68c2964f90515bc Mon Sep 17 00:00:00 2001 From: ericholguin Date: Sat, 28 Oct 2023 20:25:18 -0600 Subject: [PATCH] ui: change post view background to be all black Closes: https://github.com/damus-io/damus/pull/1666 Reviewed-by: William Casarin Signed-off-by: William Casarin --- damus/Views/PostView.swift | 3 ++- damus/Views/TextViewWrapper.swift | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift index c276b7cf8..355738399 100644 --- a/damus/Views/PostView.swift +++ b/damus/Views/PostView.swift @@ -154,7 +154,7 @@ struct PostView: View { } var AttachmentBar: some View { - HStack(alignment: .center) { + HStack(alignment: .center, spacing: 15) { ImageButton CameraButton } @@ -428,6 +428,7 @@ struct PostView: View { } } } + .background(DamusColors.adaptableWhite.edgesIgnoringSafeArea(.all)) .sheet(isPresented: $attach_media) { ImagePicker(uploader: damus_state.settings.default_media_uploader, sourceType: .photoLibrary, pubkey: damus_state.pubkey, image_upload_confirm: $image_upload_confirm) { img in self.mediaToUpload = .image(img) diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift index 35434d898..f988974d2 100644 --- a/damus/Views/TextViewWrapper.swift +++ b/damus/Views/TextViewWrapper.swift @@ -19,6 +19,7 @@ struct TextViewWrapper: UIViewRepresentable { func makeUIView(context: Context) -> UITextView { let textView = UITextView() + textView.backgroundColor = UIColor(DamusColors.adaptableWhite) textView.delegate = context.coordinator // Disable scrolling (this view will expand vertically as needed to fit text)