Writing on practices and principles to achieve sustainable codebases in iOS for developers and tech firms.
![How to draw images programmatically without Views or UIViews for your Tests](https://images.squarespace-cdn.com/content/v1/60e371d6d057b61780572446/1687315520504-KQ17GW32UFFROGT4RYLJ/DALL%C2%B7E+2023-06-20+22.44.56+-+beautiful+photo+creating+a+bunch+of+code+transforming+into+an+beautiful+landscape+image.png)
How to draw images programmatically without Views or UIViews for your Tests
Would you like to gain some performance in your tests by drawing images without needing a UIViewController, UIView, or Views? This article shows how to draw a tiny square image using UIGraphicsImageRenderer without using an UIView/View and in any thread.