diff --git a/enzevalos_iphone/SwiftUI/Compose/AddAttachmentsView.swift b/enzevalos_iphone/SwiftUI/Compose/AddAttachmentsView.swift index 54c7eae4cbdf733d99db8f82a3ec1a9eaea970aa..e6d0e6e3bb4f9e382cde958b4b872cd7480d6dff 100644 --- a/enzevalos_iphone/SwiftUI/Compose/AddAttachmentsView.swift +++ b/enzevalos_iphone/SwiftUI/Compose/AddAttachmentsView.swift @@ -14,7 +14,9 @@ struct AddAttachmentsView: View { @State private var imageAttachment: UIImage? { didSet { if let newImage = imageAttachment { - // TODO: Turn image into Attachment and append to model.attachments + // TODO: This is closure is never executed because + // imageAttachments is not set properly + print("user chose image") } } } @@ -31,6 +33,8 @@ struct AddAttachmentsView: View { attachFileButton Spacer() imageUploadButton + Spacer() + .frame(height: 3) } filePreviews