Generates lazy instantiation for you!
- Search
DCLazyInstantiate
on Alcatraz Package Manager
-
Clone this repo
-
Then build the
DCLazyInstantiate
target in the Xcode project and the plug-in will automatically be installed in~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
-
Restart Xcode.
curl -fsSL https://raw.githubusercontent.com/Tengag/DCLazyInstantiate/master/script/install.sh | sh
Move your cursor to the property you want to generate lazy instantiation.
Xcode -> Edit -> DCLazyInstantiate
Shift + Cmd + -
You can change the shortcut in Settings, Xcode -> Edit -> DCLazyInstantiate -> Settings
.
- Customizing code style.
- Insert instantiation in specific prama mark section.
- Mutiselect property support.(Thanks to:@D1g1K1d)