Butterfly
Butterfly is a lightweight library for integrating bug-report and feedback features with shake-motion event.
Goals of this project
One of the main issues accross the iOS development is the feedback of new features and bug report.
The most common way is to use mailto
to send a dry and boring email :
Butterfly provides an elegant way to present users' feedback as easy as possible.
Quick Look
Installation
via CocoaPod
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Butterfly', '~> 0.3.15'
Manually
$ git submodule add https://github.com/wongzigii/Butterfly.git
- Open the
Butterfly
folder, and dragButterfly.xcodeproj
into the file navigator of your app project, under your app project. - In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
- In the tab bar at the top of that window, open the "Build Phases" panel.
- Add Butterfly.framework within the "Target Dependencies"
- Click on the + button at the top left of "Build Phases" panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add Butterfly.framework.
Usage
Upload
ButterflyViewController
protocol method invoked when send button pressed. You can conform this protocol to handle the image uploading. However, in Xcode Version 6.4 (6E35b) with Swift 2.0, there currently seems to be no way to call static (class) methods defined in a protocol (in pure Swift).
Considering this issue, Butterfly included the ButterflyFileUploader
to handle uploading stuff in v0.3.13. The ButterflyFileUploader
class is an encapsulation under Alamofire 's upload API.
Configuration of ButterflyFileUploader
For further information, please check out ButterflyFileUploader.swift.
License
Butterfly is under MIT LICENCE, see the LICENCE file for more info.