Skip to content

Add a "RPC Tester" to the swift example#93

Open
1egoman wants to merge 4 commits intomainfrom
rpc-v2
Open

Add a "RPC Tester" to the swift example#93
1egoman wants to merge 4 commits intomainfrom
rpc-v2

Conversation

@1egoman
Copy link
Copy Markdown

@1egoman 1egoman commented Apr 29, 2026

Overview

Adds a rpc testing interface into the swift example to make exercising RPC use cases easier.

Here's a screenshot of roughly what it looks like:

Screenshot 2026-04-29 at 4 47 53 PM

Warning

This pull request was LLM generated and has only been lightly reviewed by a human. The author has tested this and confirms it works in the happy path, but no other validation has been done.

A more thorough review from a swift expert this needs to occur before this could be merged.

}
}
#if os(iOS)
.listSectionSpacing(24)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line won't build on iOS (newer SwiftUI API), feel free to drop it.

@ViewBuilder
private var payloadSection: some View {
Section {
TextEditor(text: $payload)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This layout will probably break on iOS for bigger payloads, I'd do "predefined payload list" + field instead.

Copy link
Copy Markdown
Contributor

@pblazej pblazej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong with the UI per se (this example needs a more consistent architecture anyway), maybe it would be more useful with the ability to register the method on the other end?

isSending = true
let started = Date()

Task { @MainActor in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you don't need this main actor

@pblazej
Copy link
Copy Markdown
Contributor

pblazej commented May 4, 2026

Btw: you can pull https://skills.sh/avdlee/swiftui-agent-skill/swiftui-expert-skill if you wanna dig deeper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants