FeedbackSlack
This library can feedback to Slack when users did take a screenshot on iOS.
Requirements
- Carthage
- Swift 4.1
- iOS 8 or later
Install
Create a Cartfile on top of your project, if you doesn't have.
Then add line to Cartfile
github "fromkk/SlackFeedback" == 0.0.8
and execute carthage update
command on your terminal.
Usage
General
AppDelegate.swift
import FeedbackSlack
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
FeedbackSlack.setup("YOUR_SLACK_TOKEN", slackChannel: "#your_slack_chennel")
return true
}
Custom subjects
FeedbackSlack.setup("YOUR_SLACK_TOKEN", slackChannel: "#your_slack_chennel", subjects: [
"Bug",
"Question",
"Looks good"
])
Feedback option
FeedbackSlack.shared?.options = "userID: \(userID)"