I an so lazy that I've been looking for a way to code automatically.😆
Luckily we have snippets for Xcode.
Go to the project directory and run:
python build_snippets.py
Type the tip keyword and select the snippet.
For objective-c:
For swift:
Please feel free to let me know if you have any questions.
And I will be very grateful to anyone for providing any useful snippets.