HomeDocsiOSManual reports

Manual reports

v1.7.0

Open the bug reporter from your own buttons and workflows.

Manual triggering (SwiftUI)

Present the bug report screen programmatically:

swift
import BugScreenSDK

Button("Report Bug") {
    BugScreenSDK.presentBugReport()
}

// With pre-attached screenshot
Button("Report with Screenshot") {
    BugScreenSDK.presentBugReport(screenshot: myImage)
}

Manual triggering (UIKit)

swift
import BugScreenSDK

@IBAction func reportBugTapped(_ sender: UIButton) {
    BugScreenSDK.presentBugReport(from: self)
}

// With screenshot
BugScreenSDK.presentBugReport(
    from: self,
    screenshot: myImage
)