         let resized = UIGraphicsGetImageFromCurrentImageContext()!
         UIGraphicsEndImageContext()
 
-        self.attachments.value.append(UIImageJPEGRepresentation(resized, 75)!)
+        self.attachment.value = UIImageJPEGRepresentation(resized, 75)!
         dismiss(animated: true, completion: nil)
     }
 }

        contentField.delegate = self
        addSubview(contentField)
        addSubview(placeholder)

        NSLayoutConstraint.activate([
            contentField.topAnchor.constraint(equalTo: topAnchor),


            placeholder.topAnchor.constraint(equalTo: topAnchor, constant: 71), // SORRY 🙈
            placeholder.leftAnchor.constraint(equalTo: leftAnchor, constant: 5),

            previewView.leftAnchor.constraint(equalTo: leftAnchor, constant: 10),
            previewView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -10),
            previewView.widthAnchor.constraint(equalToConstant: 100),
            previewView.heightAnchor.constraint(equalToConstant: 100)
        ])

        preview.producer.startWithValues { self.previewView.image = $0 }

        toolbar.items = [
            UIBarButtonItem(barButtonSystemItem: .camera, target: self, action: #selector(didTapCamera))
