Swiping Gmail messages to trash not working on iPhone
Go into Settings > Mail, and tap on your Gmail account. Then tap account again, then Advanced. Look for "Move Discarded Messages Into" section and tap Deleted Mailbox.