Sitemap
SysLayer

SysLayer

Backend system design, distilled. SQL-first guides for developers who build real products.

iOS UIStackView shadow?

May 31, 2022

iOS13 no shadow explain

iOS14之前 UIStackView的layer是CATransformLayer. -> 陰影 無效

Get SysLayer’s stories in your inbox

Join Medium for free to get updates from this writer.

iOS14之後 UIStackView的layer是CALayer.-> 陰影 有效

可以在UIStackView外面包一層UIView 上陰影做舊版本支援

參考

https://useyourloaf.com/blog/stack-view-background-color-in-ios-14/

--

--

SysLayer
SysLayer

Written by SysLayer

Backend system design, distilled. SQL-first guides for developers who build real products.