Skip to content

draveness/ATProperty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATProperty Build Status

What is this?

This is a convenient and fast approach to create property. You do not need to type @property and nonatomic when you declare a property.

You just needs to type @t like this.

Demo

How to install?

The best way to install this is use Alcatraz. Install Alcatraz followed by the instruction, restart your Xcode. You can find ATProperty in the list. Just click the install button.

Manager

You can also clone the repo and build the target. And the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. Relaunch Xcode, and you can use this to create property.

Usage

This plug-in is extremely easy to use.

Common

typein result
@t @property (nonatomic, strong)
@w @property (nonatomic, weak)
@y @property (nonatomic, copy)
@a @property (nonatomic, assign)

Readonly

typein result
@rt @property (nonatomic, strong, readonly)
@rw @property (nonatomic, weak, readonly)
@ry @property (nonatomic, copy, readonly)
@ra @property (nonatomic, assign, readonly)

Readwrite

typein result
@xt @property (nonatomic, strong, readwrite)
@xw @property (nonatomic, weak, readwrite)
@xy @property (nonatomic, copy, readwrite)
@xa @property (nonatomic, assign, readwrite)

Outlet

typein result
@iw @property IBOutlet (nonatomic, weak)

Customize

You can customize the ATProperty plugin in menu:

Edit => ATProperty

ATProperty Setting

You can disabled it by clicking the checkbox ahead Enabled label. Changing default atomicity to atomic or modifier symbol order are also allowed.


Contribute

Feel free to open an issue or pull request, if you need help or there is a bug.

Contact

License

ATProperty is available under the MIT license. See the LICENSE file for more info.

About

☀️ Create @Property with shortcut

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published