UIViewController Memory Warning on Unit Tests

Hello brothers and sisters, Leo here. Today’s topic is how to trigger the UIViewController memory warning on your unit tests in Swift. We’ll explore some *hacks* to trigger the memory on the UIViewController. Let’s go! Problem – The UIViewController memory warning You have to test the code inside the didReceiveMemoryWarning() method from a view controller in […]

Join our Newsletter!

From beginner-friendly tutorials to advanced coding techniques, the newsletter is designed to help you level up your skills and stay up-to-date with the latest trends in app development.