Latest 0.1.4
License MIT
Platforms ios 8.0

Library which opens mail composer upong shake gesture. It will prompt with current app screen where user performed the guesture & attach it.


pod 'TGShakeToFeedback'


* iOS 8+
* Swift 5


From your any ViewController customise mailData & feedbackData

override func viewDidLoad() {
    // Do any additional setup after loading the view, typically from a nib.
    mailData.toRecipients = ["[email protected]"]
    mailData.bodyAsAttachment = true //If true the message will be sent as an attachment instead of an email body
    feedbackData.message = "This feedback loaded from ViewController class. Do you want to proceed?"

Below variables are available for customization. If you don’t set anything, the default values will be considered.

For mailData variable (MailData struct)

  • mailNotAvailableText
  • subject
  • body
  • isHTML
  • toRecipients
  • ccRecipients
  • bccRecipients
  • bodyAsAttachment

For feedbackData variable (FeedbackData struct)

  • title
  • message
  • cancelButtonTitle
  • defaultButtonTitle

In case you don’t want to attach a screenshot, and open only mail composer; you can call showMailVC function directly


1 2 3


Feel free to connect if you need any help :smiley:

Latest podspec

    "name": "TGShakeToFeedback",
    "version": "0.1.4",
    "summary": "Library to have shake to feedback feature.",
    "swift_versions": "5.0",
    "description": "It lets user shake the phone and mail composer will be prompted with users current screen.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Abhishek Salokhe": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.4"
    "platforms": {
        "ios": "8.0"
    "source_files": "TGShakeToFeedback/Library/TGShakeToFeedback.swift"

Pin It on Pinterest

Share This