Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable buttons in MessageUI (Swift 4)

I'm trying to enable the Camera and Apps buttons in MessageUI for my app. I haven't found any place in Apple's documentation on how to do this. Any ideas? Thanks!

UPDATE: I found a disableUserAttachments() function in Apple's documentation, which is the opposite of what I'm looking for. Apple specifically says that this function disables the camera/attachment button in the message view. I don't have this code in my project and it's still disabled. I have not found something like enableUserAttachments which is what I think I need. Any ideas appreciated. Screenshot

like image 727
TDM Avatar asked Nov 07 '22 00:11

TDM


1 Answers

You can try like this.

if MFMessageComposeViewController.canSendAttachments() {

}

Refer this link below. developer.apple.com/messageui-sendattachments

like image 187
Kathiresan Murugan Avatar answered Nov 15 '22 06:11

Kathiresan Murugan