Latest 1.2.2
Homepage https://github.com/JitendraChanglaniDev/FeedbackPod
License MIT
Platforms ios 8.0
Dependencies MBProgressHUD, ReachabilitySwift, SDWebImage
Frameworks UIKit
Authors

LogCamp

A Swift 3.0 framework for integrating feedback screen to your project. Simple and quick to use.

Installation

CocoaPods

Setting up with CocoaPods

 pod 'FeedbackPod', '~> 1.2.1'

Swift Code to navigate to feedback screen:

Import pod FeedbackPod

import FeedbackPod

You can copy paste below code and provide the details required to integrate the feedback screen.


// write below code in viewDidLoad of your controller
let bundle = Bundle(identifier: "org.cocoapods.FeedbackPod") // as need to access the Xib from other bundle
let controller = FeedbackVC(nibName: "FeedbackVC", bundle: bundle) // get the controller object

controller.appID = Constants.AppKeys.KALoggerURL // LogCamp Url
controller.appID = Constants.AppKeys.KALoggerAppID // provide KALogger id  
controller.appKey = Constants.AppKeys.KALoggerAppKey // provide KALogger application key
controller.langCode = self.getSelectedLanguageTextCode() // optional if your application supports language support e.g :- "en" , "es"
controller.submitButtonColor = Constants.AppColors.firstButtonColor // provide button color according to the theme of application
controller.userName = "" // optional if user is logged in
controller.userFirstName = "" // optional if user is logged in
controller.userLastName = "" // optional if user is logged in

// code to make feedback screen as child view of your controller
addChildViewController(controller)
self.view.addSubview(controller.view)
controller.view.frame = view.bounds
controller.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
controller.didMove(toParentViewController: self)

Finally if you app has language support then in Localizable.string file provide below keys

// Do not provide below keys if your app supports only Engish language as it is by default provided
// Feedback Screen keys
"keyPlaceHolder"                          = "Write your review here";
"keyHowInfoLabel"                         = "How Happy are you with %@?";
"keyUserFeedback"                         = "User Feedback";
"keyMessage"                              = "Please rate us or write something in feedback";
"keyAppFeedBack"                          = "%@ App Feedback";
"keyThankYou"                             = "Thank you";
"keyFeedbackSubmitted"                    = "Your feedback submitted successfully";
"keyGallery"                              = "Gallery";
"keySelectSource"                         = "Select source";
"keyDelete"                               = "Delete";
"keyPreview"                              = "Preview";
"keyCameraText"                           = "Camera";
"keyPhotos"                               = "Photos";
"keyFeedbackOrComment"                    = "Your Feedback/Comments";
"keySubmit"                               = "Submit";
"keyOkButtonLabel"                        = "OK";
"keySourceNotAvailable"                   = "Source type not available";
"keyProcessing"                           = "Loading..";
"keyNetworkError"                         = "Network Error";
"keyNoInternet"                           = "Application requires network access either through WiFi or Mobile network.";
"keyCancelButtonlabel"                    = "Cancel";

Latest podspec

{
    "name": "FeedbackPod",
    "version": "1.2.2",
    "summary": "This is pod that can be used for integrating feedback screen to your project.",
    "description": "This is pod that can be used for integrating feedback screen to your project. It will keep track of feedback for your project.",
    "homepage": "https://github.com/JitendraChanglaniDev/FeedbackPod",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "JitendraChanglaniDev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JitendraChanglaniDev/FeedbackPod.git",
        "tag": "1.2.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "FeedbackPod",
        "FeedbackPod/**/*.{swift,c,h}"
    ],
    "resource_bundles": {
        "feedbackLib": [
            "FeedbackPod/**/*.{png,xib}"
        ]
    },
    "libraries": "z",
    "public_header_files": "FeedbackPod/Zip/*.h",
    "pod_target_xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(SRCROOT)/FeedbackPod/FeedbackPod/Zip/minizip/**",
        "LIBRARY_SEARCH_PATHS": "$(SRCROOT)/FeedbackPod/FeedbackPod/"
    },
    "preserve_paths": "FeedbackPod/Zip/minizip/module.modulemap",
    "frameworks": "UIKit",
    "dependencies": {
        "MBProgressHUD": [
            "~> 0.9.2"
        ],
        "ReachabilitySwift": [
            "~> 3"
        ],
        "SDWebImage": [
            "~>3.7"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This