Latest 0.1.3
Homepage https://github.com/imthegiga/TGShakeToFeedback
License MIT
Platforms ios 8.0
Authors

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

Pod

pod 'TGShakeToFeedback'

Requirements

* iOS 8+
* Swift 3+

Usage

From your any ViewController customise mailData & feedbackData
e.g.

override func viewDidLoad() {
    super.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

Screenshots

1 2 3

Contact

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

Latest podspec

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

Pin It on Pinterest

Share This