David Ewins

Liquid Glass playground

Set up a glass button or a glass view, then copy the @expo/ui/swift-ui code for it. Written against Expo SDK 57.

This preview is a browser approximation of iOS 26 Liquid Glass, made with CSS blur. The real effect bends light and reacts to touch in ways a browser can't draw, so check it on a device. Press and hold to see the press state.

Code

Install with npx expo install @expo/ui. Needs iOS 26 and Xcode 26. On older iOS versions the glass modifiers fall back: glassEffect leaves the view as it is and glass button styles become the default style.

GlassButton.tsx
import { Button, Host } from '@expo/ui/swift-ui'
import { buttonBorderShape, buttonStyle } from '@expo/ui/swift-ui/modifiers'

export function GlassButton({ onPress }: { onPress: () => void }) {
  return (
    <Host matchContents>
      <Button
        label="Continue"
        onPress={onPress}
        modifiers={[
          buttonStyle('glass'),
          buttonBorderShape('capsule'),
        ]}
      />
    </Host>
  )
}

How the controls map to the API

Sources