~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

iOS: a feed pages on as its foot comes on screen

Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:ios/feed-paging
ios/App/StepScreen.swift+7−2
@@ -53,7 +53,9 @@ struct StepView: View {
} else {
ScrollViewReader { proxy in
ScrollView {
VStack(alignment: .leading, spacing: Space.s3) {
// Lazy, so the foot appears (and asks for a page more) only as
// it comes on screen, not as soon as it is built.
LazyVStack(alignment: .leading, spacing: Space.s3) {
if step.needsSignIn {
signIn
} else if let drawn = step.drawn, wired == ObjectIdentifier(step) {
@@ -159,8 +161,11 @@ struct StepView: View {
Text(error).font(.footnote).foregroundStyle(.secondary)
Button("Try again") { Task { await step.loadMore(browser.client) } }
}
} else {
} else if let next = drawn.nextPage {
// One spinner a page: the next page's appears afresh, and asks
// for it as it comes on screen.
ProgressView()
.id(next)
.onAppear { Task { await step.loadMore(browser.client) } }
}
}