Khoa Pham
Khoa Pham
Oct 22, 2016 · 1 min read

On Android, we have an option called Show layout bounds, which allows us to see bounding areas of your views displayed in vibrant blue and purple.

Layout bounds

Border

On iOS, with the help of runtime, we can do the same. Using Border

All you have to do is

How Border works

The idea is to swizzle didMoveToSuperview in constructor

Where to go from here

The other way to do is to use __attribute__ and constructor . Here are some more links to help you explore further

Fantageek

Simple apps that make sense

Khoa Pham

Written by

Khoa Pham

My apps https://onmyway133.github.io/

Fantageek

Fantageek

Simple apps that make sense

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade