1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

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>
This commit is contained in:
ericholguin 2023-10-28 20:25:18 -06:00 committed by William Casarin
parent 4dd800e6b9
commit a2fdb61013
2 changed files with 3 additions and 1 deletions

View File

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

View File

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