Repository navigation
Closed
Description
Gates: blocked-by: V-4 (#1029) (B-6 minimal AdMob-in-accessory sample must resolve U-10 first) · blocks: —
One-line goal: move the AdMob banner from its current placement into
View.tabViewBottomAccessory(content:) (iOS/iPadOS/Mac-Catalyst 26+), WITH a pre-built
fallback to the current tab-content-bottom placement if the UIViewRepresentable AdMob
banner turns out incompatible with the accessory container — and explicitly no banner at
all on macOS.
Design anchor: docs/designs/v3/design.md §2.4 (tabViewBottomAccessory + the U-10
unconfirmed item + fallback), §2.4.1 (macOS has no accessory API — the 3-option table + D18).
Spec (design.md §2.4, §2.4.1):
tabViewBottomAccessorywith.expanded(default, full height above tab bar) and
.inline(collapses level with tab bar on scroll-minimize) placements, per the
TabViewBottomAccessoryPlacementAPI.- This issue does NOT proceed until V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029) (B-6) has posted a PASS — if V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029) posts FAIL
(AdMob'sUIViewRepresentabledoesn't render correctly inside the accessory), this
issue's scope changes to implementing the pre-designed fallback (§2.4: "退回 tab 內容
底部,不阻擋任何其他設計") instead of the accessory path — either outcome ships,
monetization is explicitly not allowed to block on an unverified API (§2.4's closing line). - macOS: no banner at all (§2.4.1 option A, the design's explicit recommendation) —
tabViewBottomAccessorydoesn't exist on macOS, and the two alternatives (detail-column
fixed footer / sidebar placement) were rejected in §2.4.1 as directly conflicting with
the full-bleed board and functional-layer glass rules respectively. Do not implement
either rejected alternative "just in case" — ship option A as the final macOS behavior,
not a placeholder.
Acceptance criteria (mechanically checkable):
- If V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029)/B-6 PASSED:
swift test(both apps) confirms the banner renders inside
tabViewBottomAccessoryat both.expandedand.inlineplacements, with an idb
screenshot showing impressions loading (not a blank/collapsed accessory). - If V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029)/B-6 FAILED:
swift testconfirms the banner renders at tab-content-bottom
exactly as it does pre-3.0 (the documented fallback), with a code comment linking to
V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029)'s issue explaining why the accessory path wasn't taken. - macOS build:
rg "tabViewBottomAccessory" <macOS-conditional code path>→ zero hits;
confirm via#if os(macOS)exclusion or platform-conditional composition, not a runtime
check, that no banner UI is constructed on macOS at all.
Forbidden:
- Do not implement the B or C fallback options from §2.4.1's table (detail-column footer /
sidebar placement) — both are explicitly rejected in the design, not "acceptable if A
turns out hard." - Do not start implementation before V-4 (test(v3): B-6 (AdMob × tabViewBottomAccessory) + B-7 (GlassEffectContainer × button style) minimal samples #1029)/B-6 posts a verdict — the whole point of gating
is not spending the accessory-integration work speculatively.
part of #1014
Activity
wei18 commentedon Sep 1, 2026
B-6 gate cleared — PASS: AdMob
BannerViewrenders at non-zero size insidetabViewBottomAccessory(both.expandedand.inline) and the SDK impression callback fires. Verdict with evidence: #1029 (comment) · sample:spike/1029-b6-admob-accessory. Build on the accessory as the primary banner path; §2.4's tab-content-bottom fallback stays unused. Note the two feature-work findings in the verdict (capsule-end letterboxing, no re-load on placement change).wei18 commentedon Sep 7, 2026
Cross-reference correction: the B-6 gate lives in V-4 (#1029) (CLOSED, PASS verdict), not V-3 (#1028) — #1028 is the unrelated B-5 accessibility matrix. Fixed 5 stale
V-3 (#1028)refs in the body above (header was already correct). Gate is therefore cleared: this issue proceeds on the accessory path, per #1029's B-6 PASS.wei18 commentedon Sep 7, 2026
🔒 Claimed by session brisk-stork (branch
session/brisk-stork-isio, worktree Sudoku-spec-worktree-session-brisk-stork-isio). Implementing the accessory path per B-6 PASS (#1029); PM = sly-bunting session. Do not pick up concurrently.feat(shell): add generic tabViewBottomAccessory param to RootShellView
feat(monetization): host the banner in tabViewBottomAccessory (#1024)
wip(sudoku): retire practice-hub inline banner closure (#1024 phase 3…
feat(monetization): retire in-shell inline banner call sites (#1024)
test(monetization): pin ATT-primer-before-ad-load order on the sim (#…
docs(monetization): mark design.md §2.4/§2.4.1 as-built, re-anchor AT…
fix(monetization): letterbox the accessory banner instead of black sl…
docs(comments): update two stale TodayTabHost banner-slot comments (#…
test(shell): render-prove RootShellView's bottomAccessory wiring (#1024)
feat(uitest): add -uitest-open-ad-gate DEBUG-only launch arg (#1024)
merge(main): rebase the #1024 banner accessory onto the #1062 session…
fix(monetization): own the banner accessory's slot lease in GameRoot …
test(monetization): pin the accessory's no-fallback guarantee, not ju…
test(snapshots): restore the #1024 view-structure baselines for the M…
merge(main): bring in #1092 and #1093 before opening the #1080 PR
refactor(monetization): delete the unused banner fallback and apply P…
refactor(ui): drop the orphaned banner slot from the Practice and Set…
feat(monetization): host the banner in tabViewBottomAccessory with a …
wei18 commentedon Sep 22, 2026
Done, closing (PM). Shipped via #1080 / PR #1095 (merged
331b4de7, 2026-09-21), on the B-6 PASS path (#1029):tabViewBottomAccessoryat.expanded, driven by the banner session's visibility, with aGameRoot-owned lease so the slot survives UIKit re-hosting. Simulator evidence on both apps: iPhone E1–E4, iPad E5, and a Minesweeper mirror probe with 1 accessory request per launch.tabViewBottomAccessorycall is inside#if os(iOS); no banner UI is constructed on macOS..inline: ruled not applicable on feat(monetization): #1024 follow-through after #1062 merges — merge main, simulator evidence, open PR #1080. On iPhone the accessory goes inline only when the tab bar is collapsed;TabBarMinimizeBehavior.automaticnever collapses it on iOS, and the shell sets no minimize behaviour, so the shipped app cannot reach.inline.Known limits carried forward: #1091, #1094.
test(snapshots): re-baseline strict snapshots on macOS 27 (renderer d…