Impact of iOS 14.5

Reva Yoga Pradana
2 min readJul 3, 2021

When iOS 14.5 released, all of us (iOS Engineers) may already know about update of App Tracking Transparency. Yes, from next time, all of app that tracking their users, may need to implement that consent, if not, the App may got rejected.

But, on iOS 14.5, our team also facing an UI Bug that only happened on iOS 14.5. The bug is like this:

So basically on this page, we were creating a custom UIAlertController, then we modify the constraint that on it’s child view. The parent view will be adjusted too.

And then in iOS 14.5, looks like there is an update that UIAlertController has different hierarchy of the view.

Not sure also if we previously doing it wrong tho. But after we consider that, and fix the constraint, the UI now works as expected, not only on iOS 14.5, but also on lower version of OS.

Our fixing is something like, remove the parent’s view width constraint, remake the new width constraint, and then applying it both on parent and child views. Also, we adjust the leading anchor constraint on child view based on it’s parent’s view.

Hope it help everyone who may facing it!

--

--

Reva Yoga Pradana

Engineering Manager — Software Engineer — iOS — Infra @ OVO.id | ex Bukalapak.com