Skip to content

LazyClutch/DCLazyInstantiate

 
 

Repository files navigation

DCLazyInstantiate

Generates lazy instantiation for you!

DCLazyInstantiate

Install & Update

Via Alcatraz

  1. Search DCLazyInstantiate on Alcatraz Package Manager

Via source

  1. Clone this repo

  2. 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

  3. 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

  1. Customizing code style.
  2. Insert instantiation in specific prama mark section.

Done

  1. Mutiselect property support.(Thanks to:@D1g1K1d)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 97.7%
  • Shell 2.3%