Hidden gem of UINavigationBar — scrollEdgeAppearance

Thongchai Kolyutsakul
SwiftBlade
Published in
2 min readMay 7, 2023

--

This week I discovered a property of UINavigationBar called scrollEdgeAppearance, which is introduced since iOS 13. How it works feels a but counterintuitive to me.

Let’s say, we have this code that sets both standardAppearance and scrollEdgeAppearance with 2 different colors.

// Pink
let appearance1 = UINavigationBarAppearance()…

--

--

Thongchai Kolyutsakul
SwiftBlade

iOS developer since 2009. Working @Viki in Singapore. I write about iOS development, Swift language, and general software engineers tips.