Skip to content

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

Linear 6 min read Case study mediumAdept

A Linear spin on Liquid Glass

Linear rebuilt its own version of Apple's Liquid Glass for its iOS app rather than adopting the iOS 26 APIs, gaining a customizable, expandable tab bar and support for iOS 18 users. The material is a single SwiftUI view modifier that stacks a UIVisualEffectView Gaussian blur, a gradient, and a shader-computed specular highlight. The highlight comes from a signed distance field of the rounded rectangle, turned into a normal map lit by a moving light source and composited with a Plus Lighter blend. The team also replicated variable edge blur and Increase Contrast behavior, and deliberately skipped refraction because it needs pixel data unavailable to third parties and hurts legibility in dense professional UIs.

Assumes: SwiftUI view modifiersGPU shaders basics

Related posts

  • News from WWDC25: WebKit in Safari 26 beta

    WebKit mediumAdept

    Safari 26 beta ships 67 new features and 107 improvements, with the version number jumping from 18.x to 26 to match Apple's OS renumbering. Highlights include SVG and data-URL favicons, every Home Screen site opening as a web app by default on iOS/iPadOS, HDR images with the CSS dynamic-range-limit property, and a new SwiftUI-native WebKit API built around WebView and WebPage. visionOS gains the <model> element for interactive USDZ 3D content and immersive video via APMP and HLS. WebGPU with WGSL now ships across platforms, along with CSS anchor positioning and many other web platform additions.

  • A step into the spatial web: The HTML model element in Apple Vision Pro

    WebKit mediumAdept

    visionOS 26 enables the HTML `model` element by default in Safari on Apple Vision Pro, rendering USDZ 3D assets stereoscopically inline within web pages. The API exposes a `ready` Promise for load completion and a `stagemode="orbit"` attribute for built-in pinch-and-drag rotation. It also offers an `entityTransform` property that takes a `DOMMatrix` for custom translate/rotate/scale, plus `boundingBoxCenter`/`boundingBoxExtents` for fitting content. Lighting is controlled via an `environmentmap` attribute pointing to equirectangular HDR/EXR images with an `environmentMapReady` Promise, and animations use a media-like API (`play()`, `pause()`, `currentTime`, `playbackRate`, `autoplay`, `loop`).

  • WebKit Features in Safari 26.0

    WebKit mediumAdept

    Safari 26.0 ships 75 new web features, 3 deprecations and 171 improvements, headlined by CSS Anchor Positioning (position-area, anchor(), position-try), scroll-driven animations, text-wrap: pretty, contrast-color() and the progress() function, with code examples for each. On iOS and iPadOS 26 every site added to the Home Screen now opens as a web app by default, with no manifest required. Other additions include HDR images with the dynamic-range-limit property, the <model> element and immersive video via HLS on visionOS, the Digital Credentials API, WebGPU, and WebKit in SwiftUI. Note that progress() does not clamp, so values can fall below 0% or exceed 100%.

  • Challenges of mixed SwiftUI and UIKit codebases in iOS Apps

    Medium Engineering mediumAdept

    Mixing SwiftUI into Medium's 2013-era UIKit iOS app brings recurring friction: sizing SwiftUI views hosted in UIHostingController as table/collection cells, mismatched scroll APIs (offset sign differs), and duplicated components like PostPreview implemented in both frameworks. Medium keeps UIKit for app-wide navigation and SwiftUI for local feature navigation, avoids SwiftUI TextField due to focus limitations, and notes weaker SwiftUI view debugging. A scroll performance issue from wrapping UILabel with NSAttributedString in a SwiftUI list was fixed by switching to native Text with AttributedString; raising the minimum target from iOS 13 to 16 reduced version-specific code.

  • Custom Navigational Transitions in iOS

    Zalando Engineering mediumAdept

    Zalando's iOS app adds a custom zoom-style push transition between backend-driven screens. The tapped outfit card grows into the details view, built on UIKit's UIViewControllerAnimatedTransitioning and a custom navigation delegate. Because the backend-defined UI and the generic deep-link router lack context about the tapped view, the team intercepts the tap to capture its frame and snapshot and passes them through the navigation service. Plain drawHierarchy snapshots pixelated and scaled text badly, so they switched to recursively re-rendering the tapped layout per component, omitting labels and buttons and rendering real image views, which gave crisp transitions reusable across screens.

The quest for software engineering knowledge.

Look:
Layout: