damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit a2fdb610130a055882407f1ed68c2964f90515bc
parent 4dd800e6b9a70c4234bbf80af69a6f0c3ba545d0
Author: ericholguin <eric.holguinsanchez@gmail.com>
Date:   Sat, 28 Oct 2023 20:25:18 -0600

ui: change post view background to be all black

Closes: https://github.com/damus-io/damus/pull/1666
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/PostView.swift | 3++-
Mdamus/Views/TextViewWrapper.swift | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 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 @@ -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)