Even though I don't currently use AI much for code generation, I nevertheless found Paul Hudson's article https://www.hackingwithswift.com/articles/281/what-to-fix-in-ai-generated-swift-code very useful to make me aware of areas where I'm still thinking with deprecated and less efficient APIs.