Swift client for Sentry. This client was writen in Swift but works with both Swift and Objective-C projects.
// Create client and start crash handler
SentryClient.shared = SentryClient(dsnString: "your-dsn")
SentryClient.shared?.startCrashHandler()
// Set
SentryClient.shared?.user = User(id: "3",
email: "[email protected]",
username: "some_user",
extra: ["is_admin": false]
)
- Documentation
- Example Projects
- Swift Project - Full project
- ViewController.swift - Implementation
- Objective-C Project - Full project
- ViewController.m - Implementation
- Swift Project - Full project