☀️ Create @Property with shortcut
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ATProperty.xcodeproj
ATProperty
Category
Setting
image
.gitignore
.travis.yml
LICENSE
README.md

README.md

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.