Skip to content
TypeScript

Remove Messages Glass Lab experiment (#8599)

Julius Marmingeac3a331918b7
diff --git a/experiments/messages-glass-lab/MessagesGlassLab.xcodeproj/project.pbxproj b/experiments/messages-glass-lab/MessagesGlassLab.xcodeproj/project.pbxproj
deleted file mode 100644
index dec9d28b85c..00000000000
--- a/experiments/messages-glass-lab/MessagesGlassLab.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,285 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 77;
- objects = {
-
-/* Begin PBXBuildFile section */
- 8A01A0012D10000100A00001 /* MessagesGlassLabApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A01A0002D10000100A00001 /* MessagesGlassLabApp.swift */; };
- 8A01A0032D10000100A00001 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A01A0022D10000100A00001 /* ContentView.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 8A01A0002D10000100A00001 /* MessagesGlassLabApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesGlassLabApp.swift; sourceTree = "<group>"; };
- 8A01A0022D10000100A00001 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
- 8A01A0102D10000100A00001 /* MessagesGlassLab.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MessagesGlassLab.app; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
- 8A01A0202D10000100A00001 /* MessagesGlassLab */ = {
- isa = PBXGroup;
- children = (
- 8A01A0002D10000100A00001 /* MessagesGlassLabApp.swift */,
- 8A01A0022D10000100A00001 /* ContentView.swift */,
- );
- path = MessagesGlassLab;
- sourceTree = "<group>";
- };
-
-/* Begin PBXFrameworksBuildPhase section */
- 8A01A0112D10000100A00001 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 8A01A0302D10000100A00001 = {
- isa = PBXGroup;
- children = (
- 8A01A0202D10000100A00001 /* MessagesGlassLab */,
- 8A01A0312D10000100A00001 /* Products */,
- );
- sourceTree = "<group>";
- };
- 8A01A0312D10000100A00001 /* Products */ = {
- isa = PBXGroup;
- children = (
- 8A01A0102D10000100A00001 /* MessagesGlassLab.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 8A01A0402D10000100A00001 /* MessagesGlassLab */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 8A01A0502D10000100A00001 /* Build configuration list for PBXNativeTarget "MessagesGlassLab" */;
- buildPhases = (
- 8A01A0412D10000100A00001 /* Sources */,
- 8A01A0112D10000100A00001 /* Frameworks */,
- 8A01A0422D10000100A00001 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = MessagesGlassLab;
- packageProductDependencies = (
- );
- productName = MessagesGlassLab;
- productReference = 8A01A0102D10000100A00001 /* MessagesGlassLab.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 8A01A0602D10000100A00001 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- BuildIndependentTargetsInParallel = 1;
- LastSwiftUpdateCheck = 2700;
- LastUpgradeCheck = 2700;
- TargetAttributes = {
- 8A01A0402D10000100A00001 = {
- CreatedOnToolsVersion = 27.0;
- };
- };
- };
- buildConfigurationList = 8A01A0612D10000100A00001 /* Build configuration list for PBXProject "MessagesGlassLab" */;
- compatibilityVersion = "Xcode 16.0";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 8A01A0302D10000100A00001;
- minimizedProjectReferenceProxies = 1;
- preferredProjectObjectVersion = 77;
- productRefGroup = 8A01A0312D10000100A00001 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 8A01A0402D10000100A00001 /* MessagesGlassLab */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 8A01A0422D10000100A00001 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 8A01A0412D10000100A00001 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8A01A0012D10000100A00001 /* MessagesGlassLabApp.swift in Sources */,
- 8A01A0032D10000100A00001 /* ContentView.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 8A01A0622D10000100A00001 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu17;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 27.0;
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
- MTL_FAST_MATH = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 6.0;
- };
- name = Debug;
- };
- 8A01A0632D10000100A00001 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- GCC_C_LANGUAGE_STANDARD = gnu17;
- IPHONEOS_DEPLOYMENT_TARGET = 27.0;
- MTL_FAST_MATH = YES;
- SDKROOT = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_VERSION = 6.0;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 8A01A0512D10000100A00001 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "";
- CODE_SIGNING_ALLOWED = NO;
- CODE_SIGNING_REQUIRED = NO;
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = "";
- GENERATE_INFOPLIST_FILE = YES;
- INFOPLIST_KEY_CFBundleDisplayName = "Messages Glass Lab";
- INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
- INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
- INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
- INFOPLIST_KEY_UILaunchScreen_Generation = YES;
- INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
- IPHONEOS_DEPLOYMENT_TARGET = 27.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.t3tools.messagesglasslab;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_EMIT_LOC_STRINGS = YES;
- SWIFT_VERSION = 6.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 8A01A0522D10000100A00001 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "";
- CODE_SIGNING_ALLOWED = NO;
- CODE_SIGNING_REQUIRED = NO;
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = "";
- GENERATE_INFOPLIST_FILE = YES;
- INFOPLIST_KEY_CFBundleDisplayName = "Messages Glass Lab";
- INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
- INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
- INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
- INFOPLIST_KEY_UILaunchScreen_Generation = YES;
- INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
- IPHONEOS_DEPLOYMENT_TARGET = 27.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.t3tools.messagesglasslab;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_EMIT_LOC_STRINGS = YES;
- SWIFT_VERSION = 6.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 8A01A0612D10000100A00001 /* Build configuration list for PBXProject "MessagesGlassLab" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 8A01A0622D10000100A00001 /* Debug */,
- 8A01A0632D10000100A00001 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
- 8A01A0502D10000100A00001 /* Build configuration list for PBXNativeTarget "MessagesGlassLab" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 8A01A0512D10000100A00001 /* Debug */,
- 8A01A0522D10000100A00001 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 8A01A0602D10000100A00001 /* Project object */;
-}
diff --git a/experiments/messages-glass-lab/MessagesGlassLab/ContentView.swift b/experiments/messages-glass-lab/MessagesGlassLab/ContentView.swift
deleted file mode 100644
index 9d19a6666f9..00000000000
--- a/experiments/messages-glass-lab/MessagesGlassLab/ContentView.swift
+++ /dev/null
@@ -1,386 +0,0 @@
-import SwiftUI
-
-struct LabThread: Identifiable, Hashable {
- let id = UUID()
- let title: String
- let subtitle: String
- let time: String
- let initials: String
- let tint: Color
- let preview: String
-}
-
-private let threads: [LabThread] = [
- .init(title: "Markdown rendering test", subtitle: "t3code · Julius’s Mac mini", time: "14h", initials: "MD", tint: .blue, preview: "Renderer stress test, terminal snippets, code blocks, and a very long markdown transcript."),
- .init(title: "iPad rectly text correction", subtitle: "Julius’s Mac mini · main", time: "16h", initials: "IP", tint: .purple, preview: "Fix iPad layout, search behavior, hardware keyboard, and trackpad scrolling."),
- .init(title: "Preview Webview Persists Off Panel", subtitle: "codething-mvp · Julius’s MacBook Pro", time: "22m", initials: "PW", tint: .teal, preview: "The browser preview should not leak outside the active panel when switching threads."),
- .init(title: "Add file preview action buttons", subtitle: "codex/connection-preview", time: "10d", initials: "FP", tint: .orange, preview: "Open files at exact lines and expose copy/open actions in the renderer."),
- .init(title: "Investigate v2 pipeline slowdown", subtitle: "codex-turn-runner", time: "1d", initials: "V2", tint: .gray, preview: "Compare orchestration traces and find why streamed events are delayed under load."),
- .init(title: "Fix dark-mode header glass", subtitle: "t3code/ipad-responsive-mobile-layout", time: "2h", initials: "DG", tint: .indigo, preview: "Compare dark scroll-edge material against Messages and Mail, then map the behavior back to React Native Screens."),
- .init(title: "Magic Keyboard sidebar scroll", subtitle: "mobile/input-polish", time: "3h", initials: "MK", tint: .cyan, preview: "Trackpad scrolling should remain fluid while swipe actions still work for touch gestures."),
- .init(title: "Terminal tab key routing", subtitle: "terminal/native-pty", time: "5h", initials: "⌘", tint: .green, preview: "Hardware Tab should go to the terminal session instead of escaping to the thread search field."),
- .init(title: "Diff renderer split inspector", subtitle: "review-diff/native", time: "8h", initials: "Δ", tint: .red, preview: "Keep file navigation, sticky headers, and selected hunk state stable in a three-column iPad layout."),
- .init(title: "Composer glass affordance", subtitle: "composer/liquid-glass", time: "9h", initials: "CG", tint: .pink, preview: "Prototype a bottom composer that feels native without covering too much content while scrolling."),
- .init(title: "Search placement audit", subtitle: "navigation/native-search", time: "11h", initials: "SP", tint: .mint, preview: "Validate whether search belongs in the bottom toolbar on iPhone and the sidebar chrome on iPad."),
- .init(title: "Thread row density pass", subtitle: "home/messages-list", time: "12h", initials: "TR", tint: .brown, preview: "Tune row height, separators, preview text, chevrons, and status glyphs to match native list rhythm."),
- .init(title: "Files navigator polish", subtitle: "files/inspector", time: "1d", initials: "FN", tint: .yellow, preview: "Make the file explorer feel like an iPad side inspector instead of a cramped web sidebar."),
- .init(title: "Toolbar grouping experiment", subtitle: "native-toolbar-glass", time: "2d", initials: "TB", tint: .blue.opacity(0.7), preview: "Compare separate glass buttons with merged toolbar groups and spacing behavior."),
- .init(title: "Scroll-edge fade comparison", subtitle: "swiftui/messages-lab", time: "3d", initials: "SE", tint: .purple.opacity(0.8), preview: "Record scroll positions to see where native headers start becoming visible over content."),
- .init(title: "iPad sidebar selection state", subtitle: "split-view/sidebar", time: "4d", initials: "SS", tint: .teal.opacity(0.75), preview: "Find the right selected-row treatment for dark and light mode in a persistent sidebar."),
- .init(title: "Preview webview panel bug", subtitle: "preview/browser", time: "5d", initials: "WB", tint: .orange.opacity(0.8), preview: "Ensure preview browser surfaces stay clipped to the active detail pane during navigation."),
- .init(title: "Keyboard shortcuts overlay", subtitle: "hardware-keyboard", time: "6d", initials: "KS", tint: .gray.opacity(0.9), preview: "Expose discoverable commands and keep focus behavior aligned with iPadOS keyboard conventions."),
- .init(title: "Thread loading skeleton", subtitle: "mobile/perceived-performance", time: "1w", initials: "LS", tint: .green.opacity(0.75), preview: "Replace jarring empty states with native-feeling loading rows while snapshots hydrate."),
- .init(title: "Connection recovery UX", subtitle: "lan-pairing", time: "2w", initials: "CR", tint: .red.opacity(0.75), preview: "Make reconnect banners and retry affordances less intrusive during scroll and composition."),
-]
-
-struct ContentView: View {
- @Environment(\.horizontalSizeClass) private var horizontalSizeClass
- @State private var searchText = ""
- @State private var selectedThread: LabThread? = threads[0]
-
- var body: some View {
- if horizontalSizeClass == .regular {
- NativeSplitLab(searchText: $searchText, selectedThread: $selectedThread)
- } else {
- NativePhoneLab(searchText: $searchText, selectedThread: $selectedThread)
- }
- }
-}
-
-private var filteredThreads: [LabThread] {
- threads
-}
-
-private let glassDebugCodeLines: [String] = [
- "# Native RNS glass debug route",
- "",
- "This screen intentionally avoids Expo Router headers.",
- "The native header below is owned by react-native-screens.",
- "",
- "Expected iOS 26 behavior:",
- "- At rest: header should feel like app background",
- "- While scrolled: content should blur behind the header",
- "- No gray custom overlay",
- "- No JS blur view",
- "",
- "Scroll edge effect should sample actual content:",
- "const header = { translucent: true }",
- "const scrollEdgeEffects = { top: 'soft' }",
- "",
- "Bright rows below make sampling failures obvious.",
- "",
- "node_modules",
- "/.pnp",
- ".pnp.*",
- ".yarn/*",
- "!.yarn/patches",
- "!.yarn/plugins",
- "!.yarn/releases",
- "!.yarn/versions",
- "",
- "# testing",
- "/coverage",
- ".convex",
- "e2e/.local-dev.json",
- "e2e/playwright-report",
- "e2e/test-results",
- "",
- "# app surfaces",
- "threads",
- "terminal",
- "diff renderer",
- "file explorer",
- "composer",
- "native header",
- "scroll edge",
- "liquid glass",
-]
-
-private let glassDebugSwatches: [Color] = [
- .blue,
- .green,
- .orange,
- .purple,
- .cyan,
- .pink,
-]
-
-struct NativePhoneLab: View {
- @Binding var searchText: String
- @Binding var selectedThread: LabThread?
-
- var body: some View {
- NavigationStack {
- NativeThreadLab(thread: selectedThread ?? threads[0])
- }
- }
-}
-
-struct NativeSplitLab: View {
- @Binding var searchText: String
- @Binding var selectedThread: LabThread?
-
- var body: some View {
- NavigationSplitView {
- List(filteredThreads, selection: $selectedThread) { thread in
- MessageSidebarRow(thread: thread)
- .tag(thread)
- }
- .listStyle(.sidebar)
- .navigationTitle("Threads")
- .searchable(text: $searchText, placement: .sidebar, prompt: "Search")
- .toolbar {
- ToolbarItemGroup(placement: .topBarTrailing) {
- Menu {
- Button("All Threads", systemImage: "tray.full") {}
- Button("Ready", systemImage: "checkmark.circle") {}
- Button("Running", systemImage: "bolt.circle") {}
- } label: {
- Image(systemName: "line.3.horizontal.decrease")
- }
- .buttonStyle(.glass)
-
- Button {} label: {
- Image(systemName: "gearshape")
- }
- .buttonStyle(.glass)
-
- Button {} label: {
- Image(systemName: "square.and.pencil")
- }
- .buttonStyle(.glass)
- }
- }
- } detail: {
- if let selectedThread {
- NativeThreadLab(thread: selectedThread)
- } else {
- ContentUnavailableView("Select a thread", systemImage: "sidebar.left")
- }
- }
- }
-}
-
-struct MessageListRow: View {
- let thread: LabThread
-
- var body: some View {
- HStack(alignment: .top, spacing: 14) {
- Circle()
- .fill(thread.tint.gradient)
- .frame(width: 52, height: 52)
- .overlay {
- Text(thread.initials)
- .font(.headline.weight(.bold))
- .foregroundStyle(.white)
- }
-
- VStack(alignment: .leading, spacing: 4) {
- HStack {
- Text(thread.title)
- .font(.headline.weight(.semibold))
- .lineLimit(1)
- Spacer(minLength: 8)
- Text(thread.time)
- .foregroundStyle(.secondary)
- Image(systemName: "chevron.right")
- .font(.caption.weight(.semibold))
- .foregroundStyle(.tertiary)
- }
-
- Text(thread.preview)
- .font(.subheadline)
- .foregroundStyle(.secondary)
- .lineLimit(2)
- }
- .padding(.vertical, 12)
- }
- }
-}
-
-struct MessageSidebarRow: View {
- let thread: LabThread
-
- var body: some View {
- VStack(alignment: .leading, spacing: 4) {
- HStack {
- Text(thread.title)
- .font(.headline.weight(.semibold))
- .lineLimit(1)
- Spacer()
- Text(thread.time)
- .font(.subheadline)
- .foregroundStyle(.secondary)
- }
- Text(thread.subtitle)
- .font(.subheadline)
- .foregroundStyle(.secondary)
- .lineLimit(1)
- }
- .padding(.vertical, 6)
- }
-}
-
-struct NativeThreadLab: View {
- let thread: LabThread
- @State private var draft = "Ask the repo agent, or run a command..."
- @State private var scrollStep = 0
-
- private let scrollTimer = Timer.publish(every: 2.8, on: .main, in: .common).autoconnect()
- private let scrollTargets = ["top", "swatches", "top", "code", "card"]
-
- var body: some View {
- ScrollViewReader { proxy in
- ScrollView {
- LazyVStack(alignment: .leading, spacing: 22) {
- Color.clear
- .frame(height: 0)
- .id("top")
-
- hero
- .padding(.top, 8)
-
- swatches
- .id("swatches")
-
- explanationCard
- .id("card")
-
- codeCard
- .id("code")
- }
- .padding(.horizontal, 18)
- .padding(.top, 8)
- .padding(.bottom, 96)
- }
- .background(Color(uiColor: .systemBackground))
- .onReceive(scrollTimer) { _ in
- guard !scrollTargets.isEmpty else { return }
-
- let target = scrollTargets[scrollStep % scrollTargets.count]
- scrollStep += 1
-
- withAnimation(.smooth(duration: 1.0)) {
- proxy.scrollTo(target, anchor: .top)
- }
- }
- }
- .navigationTitle("RNS Glass")
- .navigationSubtitle("plain react-native-screens")
- .toolbar {
- ToolbarItemGroup(placement: .topBarTrailing) {
- Button {} label: { Image(systemName: "plus") }
- .buttonStyle(.glass)
- Button {} label: { Image(systemName: "magnifyingglass") }
- .buttonStyle(.glass)
- }
- }
- .safeAreaInset(edge: .bottom) {
- composer
- }
- }
-
- private var hero: some View {
- VStack(alignment: .leading, spacing: 10) {
- Text("plain react-native-screens")
- .font(.subheadline.weight(.bold))
- .textCase(.uppercase)
- .tracking(0.5)
- .foregroundStyle(.secondary)
-
- Text("Native scroll-edge glass")
- .font(.system(size: 48, weight: .heavy, design: .default))
- .lineLimit(nil)
- .minimumScaleFactor(0.72)
-
- Text("This route uses RNS directly. The script scrolls automatically so the native header is captured both at rest and with bright content behind it.")
- .font(.title3)
- .foregroundStyle(.secondary)
- }
- }
-
- private var swatches: some View {
- LazyVGrid(
- columns: [GridItem(.adaptive(minimum: 60), spacing: 12)],
- alignment: .leading,
- spacing: 12
- ) {
- ForEach(Array(glassDebugSwatches.enumerated()), id: \.offset) { index, color in
- Circle()
- .fill(color.gradient)
- .frame(width: 60, height: 60)
- .overlay {
- Text("\(index + 1)")
- .font(.title2.weight(.heavy))
- .foregroundStyle(.white)
- }
- }
- }
- }
-
- private var explanationCard: some View {
- VStack(alignment: .leading, spacing: 10) {
- Text("What this isolates")
- .font(.title2.weight(.bold))
-
- Text("Native transparent header + iOS 26 scroll edge effect. No Expo Router header config, no custom blur overlay, no large title requirement.")
- .font(.title3)
- .foregroundStyle(.secondary)
- }
- .padding(22)
- .frame(maxWidth: .infinity, alignment: .leading)
- .background(.thinMaterial, in: RoundedRectangle(cornerRadius: 28, style: .continuous))
- .overlay {
- RoundedRectangle(cornerRadius: 28, style: .continuous)
- .stroke(.separator.opacity(0.35), lineWidth: 0.5)
- }
- }
-
- private var codeCard: some View {
- VStack(alignment: .leading, spacing: 0) {
- ForEach(Array((glassDebugCodeLines + glassDebugCodeLines).enumerated()), id: \.offset) { index, line in
- HStack(alignment: .top, spacing: 16) {
- Text("\(index + 1)")
- .foregroundStyle(.secondary)
- .frame(width: 34, alignment: .trailing)
-
- Text(line.isEmpty ? " " : line)
- .frame(maxWidth: .infinity, alignment: .leading)
- }
- .font(.system(size: 16, design: .monospaced))
- .lineSpacing(4)
- .padding(.horizontal, 16)
- .padding(.vertical, 3)
- }
- }
- .padding(.vertical, 14)
- .background(.thinMaterial, in: RoundedRectangle(cornerRadius: 24, style: .continuous))
- .overlay {
- RoundedRectangle(cornerRadius: 24, style: .continuous)
- .stroke(.separator.opacity(0.35), lineWidth: 0.5)
- }
- }
-
- private var composer: some View {
- HStack(spacing: 10) {
- Text(draft)
- .foregroundStyle(.secondary)
- .lineLimit(1)
- Spacer()
- Image(systemName: "arrow.up")
- .font(.headline.weight(.bold))
- .frame(width: 44, height: 44)
- .glassEffect(.regular.interactive(), in: Circle())
- }
- .padding(.leading, 18)
- .padding(.trailing, 6)
- .frame(height: 56)
- .glassEffect(.clear.interactive(), in: Capsule())
- .padding(.horizontal)
- .padding(.vertical, 8)
- }
-}
-
-#Preview {
- ContentView()
-}
diff --git a/experiments/messages-glass-lab/MessagesGlassLab/MessagesGlassLabApp.swift b/experiments/messages-glass-lab/MessagesGlassLab/MessagesGlassLabApp.swift
deleted file mode 100644
index 5cf4769194b..00000000000
--- a/experiments/messages-glass-lab/MessagesGlassLab/MessagesGlassLabApp.swift
+++ /dev/null
@@ -1,10 +0,0 @@
-import SwiftUI
-
-@main
-struct MessagesGlassLabApp: App {
- var body: some Scene {
- WindowGroup {
- ContentView()
- }
- }
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5adf75e3ada..7cfd1022028 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -248,7 +248,7 @@ importers:
'@react-navigation/native-stack':
specifier: 7.17.6
- version: 7.17.6(patch_hash=0365b727005b3a830af80ccbd0b637666cc0338d33ddcb7a25b6de51a21ea027)(7ffd26361d0ffb9781446d1519df37be)
+ version: 7.17.6(patch_hash=0365b727005b3a830af80ccbd0b637666cc0338d33ddcb7a25b6de51a21ea027)(e49ba4adb65ddb2cde0c8b8b274b705b)
'@shikijs/core':
specifier: 4.2.0
version: 4.2.0
@@ -12252,7 +12252,7 @@ snapshots:
zod: 3.25.76
optionalDependencies:
- expo-router: 56.2.11(e1497a99e5bc5be76c1cdb733671f865)
+ expo-router: 56.2.11(b91ff5333bc046aa08fb7484e4e065d6)
transitivePeerDependencies:
- '@expo/dom-webview'
@@ -12328,7 +12328,7 @@ snapshots:
zod: 3.25.76
optionalDependencies:
- expo-router: 56.2.11(80beea6a31a5d2003a696c1401258797)
+ expo-router: 56.2.11(f8b3939b2a15129a8b59814542a58c1b)
transitivePeerDependencies:
- '@expo/dom-webview'
@@ -12668,7 +12668,7 @@ snapshots:
react: 19.2.3
optionalDependencies:
- expo-router: 56.2.11(e1497a99e5bc5be76c1cdb733671f865)
+ expo-router: 56.2.11(b91ff5333bc046aa08fb7484e4e065d6)
react-dom: 19.2.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -12683,7 +12683,7 @@ snapshots:
react: 19.2.6
optionalDependencies:
- expo-router: 56.2.11(80beea6a31a5d2003a696c1401258797)
+ expo-router: 56.2.11(f8b3939b2a15129a8b59814542a58c1b)
react-dom: 19.2.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -14268,7 +14268,7 @@ snapshots:
optionalDependencies:
- '@react-navigation/[email protected](patch_hash=0365b727005b3a830af80ccbd0b637666cc0338d33ddcb7a25b6de51a21ea027)(7ffd26361d0ffb9781446d1519df37be)':
+ '@react-navigation/[email protected](patch_hash=0365b727005b3a830af80ccbd0b637666cc0338d33ddcb7a25b6de51a21ea027)(e49ba4adb65ddb2cde0c8b8b274b705b)':
dependencies:
'@react-navigation/elements': 2.9.26(c6a2ad0e2c930f8e3896e77c3ba11bc4)
@@ -17062,47 +17062,47 @@ snapshots:
- supports-color
- typescript
- [email protected](80beea6a31a5d2003a696c1401258797):
+ [email protected](b91ff5333bc046aa08fb7484e4e065d6):
dependencies:
'@expo/schema-utils': 56.0.1
- '@expo/ui': 56.0.18(32843e0c0883df8bccfa0b8323659df5)
- '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])
+ '@expo/ui': 56.0.18(3cdc0dde9f93166d952f1e1bd0cb25c0)
+ '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])
'@testing-library/jest-dom': 6.9.1
'@testing-library/user-event': 14.6.1(@testing-library/[email protected])
client-only: 0.0.1
color: 4.2.3
debug: 4.4.3
escape-string-regexp: 4.0.0
- expo: 56.0.12(deb8cbf3e0f411b34ba85a995c9982ba)
+ expo: 56.0.12(8895228379997a2a064f9644cda56ed0)
expo-server: 56.0.5
fast-deep-equal: 3.1.3
invariant: 2.2.4
nanoid: 3.3.12
query-string: 7.1.3
- react: 19.2.6
+ react: 19.2.3
react-fast-compare: 3.2.2
react-is: 19.2.7
- react-native-drawer-layout: 4.2.4(de9b2f2dc96a3557fdc0df187a8417ee)
- react-native-screens: 4.25.2(patch_hash=b3d86ac8bf77b40f4112672f92225853bce6faca485a4aeb609a07a70162a5cc)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
+ react-native-drawer-layout: 4.2.4(05364bd849de538917a7364cc7dee3f5)
+ react-native-screens: 4.25.2(patch_hash=b3d86ac8bf77b40f4112672f92225853bce6faca485a4aeb609a07a70162a5cc)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
server-only: 0.0.1
sf-symbols-typescript: 2.2.0
shallowequal: 1.1.0
standard-navigation: 0.0.5
optionalDependencies:
- react-dom: 19.2.6([email protected])
- react-native-gesture-handler: 2.31.2(patch_hash=808eb26f9e57cf4945efd3985af4d9c764da6f91f4c9764433cc868602bbf4d3)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
+ react-dom: 19.2.3([email protected])
+ react-native-gesture-handler: 2.31.2(patch_hash=808eb26f9e57cf4945efd3985af4d9c764da6f91f4c9764433cc868602bbf4d3)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
transitivePeerDependencies:
- '@babel/core'
- '@testing-library/dom'
@@ -17113,47 +17113,47 @@ snapshots:
- supports-color
optional: true
- [email protected](e1497a99e5bc5be76c1cdb733671f865):
+ [email protected](f8b3939b2a15129a8b59814542a58c1b):
dependencies:
'@expo/schema-utils': 56.0.1
- '@expo/ui': 56.0.18(3cdc0dde9f93166d952f1e1bd0cb25c0)
- '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])
+ '@expo/ui': 56.0.18(32843e0c0883df8bccfa0b8323659df5)
+ '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])
'@testing-library/jest-dom': 6.9.1
'@testing-library/user-event': 14.6.1(@testing-library/[email protected])
client-only: 0.0.1
color: 4.2.3
debug: 4.4.3
escape-string-regexp: 4.0.0
- expo: 56.0.12(8895228379997a2a064f9644cda56ed0)
+ expo: 56.0.12(deb8cbf3e0f411b34ba85a995c9982ba)
expo-server: 56.0.5
fast-deep-equal: 3.1.3
invariant: 2.2.4
nanoid: 3.3.12
query-string: 7.1.3
- react: 19.2.3
+ react: 19.2.6
react-fast-compare: 3.2.2
react-is: 19.2.7
- react-native-drawer-layout: 4.2.4(05364bd849de538917a7364cc7dee3f5)
- react-native-screens: 4.25.2(patch_hash=b3d86ac8bf77b40f4112672f92225853bce6faca485a4aeb609a07a70162a5cc)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
+ react-native-drawer-layout: 4.2.4(de9b2f2dc96a3557fdc0df187a8417ee)
+ react-native-screens: 4.25.2(patch_hash=b3d86ac8bf77b40f4112672f92225853bce6faca485a4aeb609a07a70162a5cc)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
server-only: 0.0.1
sf-symbols-typescript: 2.2.0
shallowequal: 1.1.0
standard-navigation: 0.0.5
optionalDependencies:
- react-dom: 19.2.3([email protected])
- react-native-gesture-handler: 2.31.2(patch_hash=808eb26f9e57cf4945efd3985af4d9c764da6f91f4c9764433cc868602bbf4d3)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
+ react-dom: 19.2.6([email protected])
+ react-native-gesture-handler: 2.31.2(patch_hash=808eb26f9e57cf4945efd3985af4d9c764da6f91f4c9764433cc868602bbf4d3)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
transitivePeerDependencies:
- '@babel/core'
- '@testing-library/dom'