In you can do a lot with extensions, but it still bugs me that you can't add a variable to track the state of something without subclassing. It seems like the compiler could create a subclass for you, but that seems kinda ugly too.

It's not a wonder so many software projects grow so out-of-control when you have to add another file just to add a variable to an object.🙄

Follow

TIL: viewSafeAreaInsetsDidChange🤦‍♂️
At least it fixes this ugly workaround.

On a semi-related note, I love deleting code😊

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!