UIViewController Memory Warning on Unit Tests
![](https://holyswift.app/wp-content/uploads/2022/07/Screenshot-2022-07-16-at-10.32.08-2-1024x502.png)
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 […]