Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

SoundCloud Backstage 13 min read Case study mediumAdept

Android Large Screen Optimization

SoundCloud's Android team reworked its app for tablets, foldables and Chromebooks so it no longer just stretched the phone layout. The changes were guided by Google's large screen checklist. The bottom navigation bar became a NavigationRailView chosen through an sw600dp boolean resource and gated by a feature-flag A/B test. The mini player shrinks to a right-aligned sheet by adjusting BottomSheetBehavior width and margins in onSlide. Comments and the play queue open in a 400dp side fragment holder over the player, and search uses a 40/60 ConstraintLayout split between suggestions and top results. The team recommends Window Size Classes over hardcoded resource qualifiers.

Related posts

  • WebKit Features for Safari 27.1

    WebKit mediumAdept

    Safari 27.1 ships with iPhone Duo, a folding phone, using the same WebKit engine as other iPhones, so responsive sites work unchanged; viewport widths range from 382 to 951 CSS pixels and heights from 368 to 902 across the outer and inner displays and split windows. Developers can preview the Device Posture API (device-posture media query, navigator.devicePosture) and the Viewport Segments API (horizontal/vertical-viewport-segments media queries, viewport-segment-* env variables, window.viewport.segments) behind feature flags, with code examples for fold-aware grid layouts. Web content does not yet extend behind the side-mounted controls on the outer display, and WebKit is exploring alternatives to viewport-fit=cover because many sites fail to inset all edges correctly.

  • Building an App Clip with React Native

    Shopify Engineering mediumAdept

    Shopify built an iOS App Clip for the Shop app in React Native under the 10MB size cap, aimed at reducing drop-off between the checkout "Thank you" page and order tracking. A naive Hello World App Clip was 28MB because autolinking pulled in every native dependency. Explicitly listing a minimal set of pods in the Podfile cut it to 4.3MB, and a scrappy feature-complete prototype came to 6.5MB. Sharing order-view components failed because they transitively pulled in heavy native dependencies, so the team duplicated UI code, reused only stable shared primitives, and let size constraints drive design decisions. A CI script compares Podfile dependencies against the App Clip's import graph to catch new native dependencies.

  • WebKit Features for Safari 27.2

    WebKit mediumAdept

    Safari 27.2 refines Customizable Select with a new `::field-content` pseudo-element for styling the displayed selected option without `<selectedcontent>`, adjusts `appearance: base-select` UA styles (flex-based button spacing, inherited `text-overflow`, simpler `::picker-icon`), and uses `safe` alignment so large pickers stay within the viewport. Grid Lanes renames `flow-tolerance` to `fit-tolerance` (old name kept as a deprecated alias); the property sets how close column heights must be to count as tied, and raising it well above the 1em default keeps item order steadier for keyboard users. The release also ships 20 bug fixes spanning accessibility, media/WebCodecs, cookies under CNAME, WebGPU indirect draws, and WebRTC.

  • Introducing CSS Grid Lanes

    WebKit mediumAdept

    CSS Grid Lanes (`display: grid-lanes`) brings native masonry layouts to the web, available in Safari Technology Preview 234. Lanes are defined with standard `grid-template-columns` or `grid-template-rows`. Each item goes into whichever lane leaves it closest to the start, so tab order follows visible content and infinite scroll needs no JavaScript layout. Grid features such as spanning, explicit placement and varied lane sizes all work, and flow direction (waterfall vs. brick) is inferred from which template is defined. A new `fit-tolerance` property (default 1em, formerly `item-tolerance`/`flow-tolerance`) treats near-equal lane heights as ties to reduce reordering that confuses keyboard and screen reader users.

  • What the iPhone Duo means for web development

    Mux mediumAdept

    Safari on the foldable iPhone Duo exposes the Device Posture API and Viewport Segments API behind WebKit feature flags. They let pages detect a folded posture via `navigator.devicePosture` or `@media (device-posture: folded)` and position content per screen segment with `env(viewport-segment-*)` variables. Using these plus a flagged Fullscreen API, a Netflix-style folded video player was built from Video.js v10 components, with video on the top half and tiled controls on the bottom. A blurred, mirrored reflection is drawn by copying frames to a small canvas via requestVideoFrameCallback, since -webkit-box-reflect doesn't work on video in iOS Safari. In practice it needs three feature flags on iOS, and Chromium on a Pixel Fold clips fullscreen content to the top half, so the design isn't shippable today.

The quest for software engineering knowledge.

Look:
Layout: