# Testing safe area insets on iOS

DevFeed: [Testing safe area insets on iOS](<https://devfeed.tech/articles/testing-safe-area-insets-on-ios-32241.md>)

Original publisher: [Read original article](<https://publicobject.com/2024/11/20/testing-safe-area-insets-on-ios/>)

Author: Jesse Wilson

Published: 2024-11-20T20:04:48Z

Content type: tutorial

Language: en

Sources: [Public Object](<https://devfeed.tech/sources/public-object.md>)

Topics: [iOS](<https://devfeed.tech/topics/ios.md>), [Testing](<https://devfeed.tech/topics/testing.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [ios](<https://devfeed.tech/tags/ios.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A developer describes testing safe area inset handling for edge-to-edge UI on iOS. The test required a visible view hierarchy and window, and it passed in CI after replacing one implementation detail. A later update presents a simpler solution involving overriding a superview function and requesting layout.

## Source excerpt

I'm adding edge-to-edge UI support in Redwood. My code asks the host platform how much of the screen is consumed by system bars and notches and things, and it returns us a measurement like '40 pixels at the top + 10 pixels at the bottom'. The iOS code to handle