The Power of ChatGPT
For a SwiftUI project, I wanted to create a reusable package with all kind of (view)modifiers. A mundane task that ChatGPT can manage with ease.
Consider the code below to give a label a nice background with rounded corners. This works perfectly inside a standalone project. But it requires refactoring to convert it into a reusable package:
So, by just pasting this Swift source code into ChatGPT and asking "optimize for SwiftUI package", you get your desired code refactoring.
Da power of ChatGPT!