iOS SDK
Capture screenshots and submit feedback from your iOS app.
Quickstart
Get your first feedback submission in under 5 minutes.
Install the SDK
Add the SDK via Swift Package Manager.
https://github.com/mcpfeedback/mcpfeedback-ios.gitInitialize in your app
Configure the SDK in your AppDelegate.
import MCPFeedback
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
MCPFeedback.configure(
apiKey: "YOUR_API_KEY",
siteKey: "YOUR_SITE_KEY"
)
return true
}
}Launch the feedback UI
Call show() to open the feedback form, or let users shake to report.
MCPFeedback.show()Verify it works
Submit a test feedback item and check your MCPFeedback dashboard. It should appear within seconds.
The SDK also supports shake-to-report. Users can shake their device to open the feedback form.
Find your API key in Dashboard > Settings > API Keys
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
| apiKey | String | required | Your MCPFeedback API key |
| siteKey | String | required | Your site identifier |
| shakeEnabled | Bool | true | Enable shake-to-report gesture |
| baseURL | String? | nil | Custom API base URL (defaults to production) |
API Reference
MCPFeedback.configure(...)
Configure the SDK with your API key and site key. Must be called before any other SDK methods, typically in AppDelegate.
MCPFeedback.show(from: UIViewController)
Opens the feedback capture flow from a specific view controller. Takes a screenshot and presents the feedback form modally.
MCPFeedback.show()
Opens the feedback capture flow from the top-most view controller. Convenience method that auto-detects the presenting controller.
MCPFeedback.teardown()
Clean up SDK resources. Call when feedback functionality is no longer needed.