All Projects → ame017 → AMEGetterMaker

ame017 / AMEGetterMaker

Licence: other
A lazyload getter maker without resign for Xcode

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to AMEGetterMaker

Xalign
An amazing Xcode Source Editor extension to align regular code. It can align Xnything in any way you want.
Stars: ✭ 2,898 (+6800%)
Mutual labels:  xcode-plugin, xcode-extension, xcode8
Xcode developer disk images
Stars: ✭ 125 (+197.62%)
Mutual labels:  xcode-plugin, xcode-extension
jekyll-loading-lazy
🧙🏽‍♀️ Automatically adds loading="lazy" to <img> and <iframe> tags. Load images on your sites lazily without JavaScript.
Stars: ✭ 41 (-2.38%)
Mutual labels:  lazyload, lazyloading
Linex
Feature packed Xcode extension
Stars: ✭ 210 (+400%)
Mutual labels:  xcode-plugin, xcode-extension
ViewGenerator
⚒ ViewGenerator generates view code from variable name automatically in iOS development
Stars: ✭ 75 (+78.57%)
Mutual labels:  xcode-plugin, xcode-extension
Snowonder
🔮 Magical import declarations formatter for Xcode
Stars: ✭ 100 (+138.1%)
Mutual labels:  xcode-plugin, xcode-extension
Xcodeequatablegenerator
Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.
Stars: ✭ 188 (+347.62%)
Mutual labels:  xcode-plugin, xcode-extension
Linessorter Xcode Extension
Xcode Extension that helps you keep your import statements and long code lists organized and uniform
Stars: ✭ 54 (+28.57%)
Mutual labels:  xcode-plugin, xcode-extension
magento2-catalog-lazy-load
Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension
Stars: ✭ 56 (+33.33%)
Mutual labels:  lazyload, lazyloading
Xcode-AutoLazyLoad
简单的Xcode代码模板extension
Stars: ✭ 23 (-45.24%)
Mutual labels:  lazyload, xcode-extension
lazy-load-images.js
Progressive & lazy loading images.
Stars: ✭ 17 (-59.52%)
Mutual labels:  lazyload, lazyloading
Xgist
Xcode extension to send code to GitHub's Gist
Stars: ✭ 75 (+78.57%)
Mutual labels:  xcode-plugin, xcode-extension
Xbookmark
Bookmark Plugin for Xcode 8.x and 7.x
Stars: ✭ 72 (+71.43%)
Mutual labels:  xcode-plugin, xcode-extension
Swimat
An Xcode formatter plug-in to format your swift code.
Stars: ✭ 1,388 (+3204.76%)
Mutual labels:  xcode-plugin, xcode-extension
Codegenerator
A Xcode plugin for generate Objectice-C code.
Stars: ✭ 63 (+50%)
Mutual labels:  xcode-plugin, xcode-extension
Nef Plugin
🔌 an Xcode extension to use nef features easily
Stars: ✭ 144 (+242.86%)
Mutual labels:  xcode-plugin, xcode-extension
TrickerX
An Xcode9+ Extension which make CodingKeys automatically.
Stars: ✭ 90 (+114.29%)
Mutual labels:  xcode-plugin, xcode-extension
Swiftmockgeneratorforxcode
An Xcode extension (plugin) to generate Swift test doubles automatically.
Stars: ✭ 522 (+1142.86%)
Mutual labels:  xcode-plugin, xcode-extension
Import
Xcode extension for adding imports from anywhere in the code ☝️
Stars: ✭ 818 (+1847.62%)
Mutual labels:  xcode-plugin, xcode-extension
Awesome Xcode Extensions
Awesome native Xcode extensions.
Stars: ✭ 2,628 (+6157.14%)
Mutual labels:  xcode-plugin, xcode-extension

AMEGetterMaker

A lazyload getter maker without resign

996.icu LICENSE

cn Chinese (Simplified): 中文说明

Version update

  • 1.1.1  
    Add support for type restriction
    Class<ChildClass *> *
  • 1.1.0  
    Add support for swift(test function)
  • 1.0.1  
    Ignore IBOutlet

What is this?

Every time you may use lazyload.However, apple do not provide the method to quickly make getter. So this plug-in may solve your problem.

e.g.

//无视xib
@property (weak, nonatomic) IBOutlet xibSubView *subView;

//无视注释
@property (nonatomic, strong) UIView * view1;
/**
 多行注释也会过滤
 */
@property (nonatomic, strong) UIView * view2;
//assign属性会被过滤
@property (nonatomic, assign) BOOL hahaha;

@property (nonatomic, copy) NSString * sting;

↓↓↓

- (UIView *)view1{
    if(!_view1){
        _view1 = ({
            UIView * object = [[UIView alloc]init];
            object;
       });
    }
    return _view1;
}

- (UIView *)view2{
    if(!_view2){
        _view2 = ({
            UIView * object = [[UIView alloc]init];
            object;
       });
    }
    return _view2;
}

- (NSString *)sting{
    if(!_sting){
        _sting = ({
            NSString * object = [[NSString alloc]init];
            object;
       });
    }
    return _sting;
}

To use in swift


Now support var to lazy var.

e.g.

var button : UIButton!
var button1 : UIButton = UIButton()
var button2 = UIButton()

↓↓↓

lazy var button : UIButton = {
	let object = UIButton()
	return object
}()

lazy var button1 : UIButton = {
	let object = UIButton()
	return object
}()

lazy var button2 : UIButton = {
	let object = UIButton()
	return object
}()

Installation

Xcode8.0+

  1. Download
  2. Enable this plug-in in setting

  3. You can Bind shortcuts in Xcode setting (shift + G)

Xcode7.0

You can use this plug-in -------> getterMake-Xcode

Trouble Shooting

If your Xcode is 8.0+.
Please install macOS Sierra (version 10.12) if your macOS is 10.11.

Special thanks to

hackxhj Give me a lot of inspiration to finish this plug-in

Other project recommendations

AMECategoryMaker
A category property maker without resigin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].