Manual reports
v1.9.0Open the bug reporter from your own buttons and workflows.
Manual triggering (SwiftUI)
swift
import BugScreenSDK
import SwiftUI
import UIKit
struct ReportButtons: View {
// Supply an image selected or captured by your app.
let screenshot: UIImage
var body: some View {
VStack {
Button("Report Bug") {
BugScreenSDK.presentBugReport()
}
Button("Report with Screenshot") {
BugScreenSDK.presentBugReport(screenshot: screenshot)
}
}
}
}Manual triggering (UIKit)
swift
import BugScreenSDK
import UIKit
class ReportViewController: UIViewController {
@IBAction func reportBugTapped(_ sender: UIButton) {
BugScreenSDK.presentBugReport(from: self)
}
// Call with an image selected or captured by your app.
func reportWithScreenshot(_ screenshot: UIImage) {
BugScreenSDK.presentBugReport(from: self, screenshot: screenshot)
}
}Preview and markup
- Tap an image thumbnail to preview it. Swipe between attachments or remove an image from the preview.
- Choose Markup to use Pen, Arrow, Box or Redact, then save your edits.