iOS & macOS SDK
Integrate Feddy into your iOS and macOS applications with minimal code
iOS & macOS SDK
Add feedback collection to your iOS and macOS apps with just a few lines of code.
Installation
Swift Package Manager (Recommended)
- In Xcode, go to File > Add Package Dependencies
- Add the package URL:
https://github.com/FeddyApp/feddy-ios-sdk
- Select version and add to your target
CocoaPods
Add to your Podfile
:
pod 'Feddy', '~> 1.0'
Quick Start
1. Configure in AppDelegate
import UIKit
import Feddy
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Configure Feddy with your API key
Feddy.configure(apiKey: "your_api_key_here")
return true
}
}
Get your API key from the Feddy Dashboard
2. Show Feedback Center
UIKit - Push Navigation (Recommended):
@objc func showFeedback() {
// Simple push navigation
navigationController?.pushViewController(Feddy.viewController, animated: true)
}
UIKit - Modal Presentation:
@objc func showFeedbackModal() {
// Modal with navigation bar
present(Feddy.viewController.withNavigation(), animated: true)
}
SwiftUI:
import SwiftUI
import Feddy
struct ContentView: View {
var body: some View {
NavigationView {
VStack {
// Your content
NavigationLink("View Feedback", destination: Feddy.FeedbackListView())
}
}
}
}
Configuration Options
Debug Logging
Enable debug logging during development:
#if DEBUG
Feddy.configure(
apiKey: "your_api_key_here",
enableDebugLogging: true
)
#endif
User Information
Set user context for better feedback tracking:
Feddy.updateUser(
email: "user@example.com",
name: "John Doe"
)
Check SDK Status
Verify SDK configuration:
if Feddy.isConfigured {
print("✅ SDK ready")
} else {
print("❌ SDK not configured")
}
Features
The Feddy SDK provides a complete feedback management system:
- ✅ Segmented Control: Planned, In Progress, In Review, Completed
- ✅ Feedback List: Display user feedback with vote counts
- ✅ Add Feedback: Built-in feedback submission form
- ✅ Voting System: Users can upvote feedback items
- ✅ Pull to Refresh: Native iOS refresh support
- ✅ Dark Mode: Automatic theme adaptation
SwiftUI Integration
For SwiftUI apps, configure in your App struct:
import SwiftUI
import Feddy
@main
struct MyApp: App {
init() {
Feddy.configure(apiKey: "your_api_key_here")
}
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Error Handling
Handle configuration errors:
guard Feddy.isConfigured else {
print("SDK not configured")
return
}
// Show feedback center
present(Feddy.viewController.withNavigation(), animated: true)
Requirements
- iOS: 13.0+
- macOS: 10.15+
- Xcode: 12.0+
- Swift: 5.3+
Next Steps
- Get your API key from Feddy Dashboard
- View the complete example project