Skip to content

Conversation

@davidkoski
Copy link
Collaborator

Proposed changes

Fix #456

This isn't perfect, but the UI is usable on iOS portrait:

Screenshot 2026-01-05 at 2 07 13 PM

Specifically on horizontalSizeClass == .compact this will use a DisclosureGroup for some of the controls and statistics. It also uses a multi-line layout for the controls (this is specifically what broke the layout).

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@davidkoski
Copy link
Collaborator Author

Contributors are welcome to improve in future PRs!

case .loading:
// Already loading, wait and retry
try await Task.sleep(nanoseconds: 100_000_000) // 100ms
return try await load()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Replaced the recursive call with a while loop.

.foregroundStyle(.secondary)
@Environment(\.horizontalSizeClass) var horizontalSizeClass

var status: some View {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Break the view up into a couple pieces that we can reassemble as either a single line (original) or a couple lines (portrait iOS).

DisclosureGroup("Statistics") {
stats
.scaleEffect(0.8)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same for the stats view -- it takes up a large potion of the screen on a smaller device. Scale the text slightly. The formatting is still poor, but usable.

@davidkoski davidkoski requested a review from awni January 5, 2026 22:13
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.

View Cutoff for LLMEval App on iOS

2 participants