Skip to content

Fix navigation title in BodyDetailView#162

Open
JeevanMahtani wants to merge 1 commit intopmusolino:masterfrom
JeevanMahtani:issue-161-fix
Open

Fix navigation title in BodyDetailView#162
JeevanMahtani wants to merge 1 commit intopmusolino:masterfrom
JeevanMahtani:issue-161-fix

Conversation

@JeevanMahtani
Copy link

Quick PR to fix the navigation title as reported in #161

@pmusolino pmusolino self-requested a review October 12, 2025 13:58
@pmusolino
Copy link
Owner

This should be dynamic, based on the point from which the screen is opened. When the response body is opened, we will have the same mismatch.

Copy link
Owner

@pmusolino pmusolino left a comment

Choose a reason for hiding this comment

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

Nice catch on the mislabeled body screen, but BodyDetailView is reused for both request + response. Hardcoding .navigationTitle("Request Body") will make the response-body screen incorrect. Can we parameterize the title (or pass an enum) and set it from the two NavigationLink call sites in RequestDetailView?

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