Skip to main content

Mappls Feedback UI Kit

Introduction​

FeedbackUI Kit for IOS is a UI kit to use wrapper for Mappls's feedback API. It allows developers to integrate feedback module in their application. Using feedback module user can submit location related feedback to Mappls's server.

Note: Sample for UI view controllers with source code is also provided by Mappls which user can directly use to show feedback screen. Information about how to use UI sample is also provided in this documentation.

If you don’t want to implement own logic and use sample from Mappls Jump to Sample UI Kit section.

Setup your Project​

Using CocoaPods​

To install the MapplsFeedbackUIKit using CocoaPods:

Create a Podfile with the following specification:

pod 'MapplsFeedbackUIKit', '1.0.0'

Run pod repo update && pod install and open the resulting Xcode workspace.

Authorization​

MapplsAPICore​

It is required to set Mappls keys to use any MAPPL's SDK. Please refer the documenatation here

Usage​

MapplsFeedbackUIKitManager is the class which will help to use this UI Control.Access shared instance of that class and call getViewController method to get instance of ViewController and present or push according to requirement.

Objective-C​
CLLocation *location = [[CLLocation alloc] initWithLatitude:_mapView.centerCoordinate.latitude longitude:_mapView.centerCoordinate.longitude];

UINavigationController *navVC = [[MapplsFeedbackUIKitManager sharedManager] getViewControllerWithLocation:location moduleId:ModuleId];
[self presentViewController:navVC animated:YES completion:nil];
Swift​
let navVC = MapplsFeedbackUIKitManager.shared.getViewController(location: CLLocation(latitude: mapView.centerCoordinate.latitude, longitude: mapView.centerCoordinate.longitude), moduleId: ModuleId)

self.present(navVC, animated: true, completion: nil)

MapplsFeedbackUIKit implicitly use functionalities of MapplsFeedBackKitManager module and provides a beautiful user expereience to submit feedback.