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