A SwiftUI library that provides a debug menu for viewing and copying LanguageModelSession
transcripts.
TranscriptDebugMenu is a lightweight SwiftUI component designed to help developers debug and inspect language model session transcripts. It provides an easy-to-use interface for viewing conversation entries and copying them to the clipboard for further analysis.
Add TranscriptDebugMenu to your project using Swift Package Manager:
- In Xcode, go to File → Add Package Dependencies...
- Enter the repository URL:
https://github.com/artemnovichkov/TranscriptDebugMenu
- Choose the version you want to use
- Add the package to your target
Alternatively, add it to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/artemnovichkov/TranscriptDebugMenu", from: "1.3.0")
]
Check out Using TranscriptDebugMenu tutorial for a step-by-step guide.
Import the library and use the transcript menu modifier on any SwiftUI view:
import SwiftUI
import FoundationModels
import TranscriptDebugMenu
struct ContentView: View {
@State private var showTranscript = false
@State private var session = LanguageModelSession()
var body: some View {
VStack {
Button("Show Transcript Menu") {
showTranscript = true
}
}
.transcriptDebugMenu(session, isPresented: $showTranscript)
}
}
- iOS 26.0+ / macOS 26.0+ / visionOS 26.0+
- Swift 6.2+
- Xcode 26.0 beta 5
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Artem Novichkov, https://www.artemnovichkov.com/
The project is available under the MIT license. See the LICENSE file for more info.