CSS Grid Lanes is a new web layout mode available in Safari 26 that enables masonry-style layouts natively in CSS โ no JavaScript required. Items flow into multiple columns or rows, each settling into the shortest available lane while preserving natural proportions.
โข Eliminates the need for JavaScript masonry libraries (e.g. Masonry.js) for waterfall/brick-wall layouts in WKWebView-hosted or Safari-rendered web content
โข Ships in Safari 26.4 / iOS 27 today, so apps using WKWebView or WebKit can adopt it immediately without waiting for cross-browser support
โข Builds on familiar CSS Grid syntax (fr units, subgrid, gap, grid-column span) so existing web skills transfer directly
Loads an inline HTML page into a WKWebView that uses CSS Grid Lanes (display: grid-lanes) to render a waterfall photo grid โ demonstrating the new layout mode available in Safari 26 on iOS 27.
import SwiftUI
import WebKit
struct GridLanesDemoView: UIViewRepresentable {
func makeUIView(context: Context) -> WKWebView {
let webView = WKWebView()
let html = """
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body { margin: 0; background: #111; }
/* CSS Grid Lanes: masonry layout in 3 lines */
.gallery {
display: grid-lanes;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 8px;
padding: 8px;
flow-tolerance: 1em;
}
.gallery img {
width: 100%;
border-radius: 8px;
display: block;
}
/* Span a featured item across 2 columns */
.gallery .featured {
grid-column: span 2;
}
</style>
</head>
<body>
<div class="gallery">
<img src="https://picsum.photos/seed/a/300/400" />
<img src="https://picsum.photos/seed/b/300/200" />
<img class="featured" src="https://picsum.photos/seed/c/600/350" />
<img src="https://picsum.photos/seed/d/300/500" />
<img src="https://picsum.photos/seed/e/300/250" />
<img src="https://picsum.photos/seed/f/300/380" />
<img src="https://picsum.photos/seed/g/300/300" />
<img src="https://picsum.photos/seed/h/300/450" />
<img src="https://picsum.photos/seed/i/300/220" />
</div>
</body>
</html>
"""
webView.loadHTMLString(html, baseURL: URL(string: "https://example.com"))
return webView
}
func updateUIView(_ uiView: WKWebView, context: Context) {}
}
struct ContentView: View {
var body: some View {
GridLanesDemoView()
.ignoresSafeArea()
.navigationTitle("Grid Lanes Demo")
}
}Liquid Glass is Apple's new material and visual design language introduced in iOS 27, bringing translucent, refractive glass-like surfaces to system and custom UI elements. It replaces the frosted vibrancy aesthetic with a more dynamic, depth-aware material that responds to content beneath it.
iOS 27 brings a sweeping set of SwiftUI enhancements including Liquid Glass design adoption, new toolbar visibility and overflow APIs, document architecture improvements with Observable, and resizable iPhone app support โ all designed to modernize app UIs with minimal code changes.
iOS 27 enforces stricter adaptivity requirements for UIKit apps, making iPhone apps fully resizable in iPhone Mirroring and on iPad, while introducing new navigation bar minimization controls, sidebar opt-in for iPhone tab bars, and prominent tab customization.
In-depth guide
SwiftUI & Liquid Glass in iOS 27 โOnly one axis can be specified โ grid-template-columns OR grid-template-rows, not both simultaneously. flow-tolerance defaults to 1em and may cause unexpected ordering; tune it or disable it for accessibility-sensitive content. Tab order vs visual order mismatch can occur when flow-tolerance is low โ test with VoiceOver.
No special hardware required; available on all iOS 27 devices in Safari and WKWebView. Other browsers support is behind a flag.
iOS 27 brings significant updates to Live Activities and the Dynamic Island, including new expanded presentations, richer interactivity via App Intents directly from the island, and updated layout APIs for more expressive minimal and compact views.