https://github.com/fromkk/slackfeedback
https://github.com/fromkk/slackfeedback
feedback slack swift swift-3
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fromkk/slackfeedback
- Owner: fromkk
- License: mit
- Created: 2016-08-21T14:10:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T05:19:18.000Z (about 7 years ago)
- Last Synced: 2025-04-23T22:52:48.785Z (about 1 year ago)
- Topics: feedback, slack, swift, swift-3
- Language: Swift
- Size: 6.56 MB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/fromkk/SlackFeedback)
# 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
```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
```swift
FeedbackSlack.setup("YOUR_SLACK_TOKEN", slackChannel: "#your_slack_chennel", subjects: [
"Bug",
"Question",
"Looks good"
])
```
## Feedback option
```swift
FeedbackSlack.shared?.options = "userID: \(userID)"
```