glassSampleArea static method

Rect glassSampleArea(
  1. Rect glass
)

Where UIKit reads the backdrop under glass (a glass of its own, not the bar): the glass grown by its margin, a fifth of its short side.

Implementation

static Rect glassSampleArea(Rect glass) =>
    glass.inflate(glass.shortestSide * 0.2);