IRFAutoCompletionKit 0.2.0

IRFAutoCompletionKit 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by irrationalfab.




  • By
  • Fabio Pelosin

Warning this library is under development and although it is functional is has some important bugs.

Small kit designed to provide autocompletion triggered by a character. Built in support is provided for emojis and completions from an user list. The base classes are easily extendible to provide support for other uses.

Currently only OS X is supported, however many of the classes would compile (in some cases with minor adaptations) on iOS.

Usage

To run the example project; clone the repo, and run pod install from the Project directory first.

#import <IRFAutoCompletionKit/IRFAutoCompletionKit.h>

- (void)viewSetupMethod {
    IRFEmojiAutoCompletionProvider *emojiCompletionProvider = [IRFEmojiAutoCompletionProvider new];
    NSArray *completionsProviders = @[emojiCompletionProvider];
    [self setAutoCompletionManager:[IRFAutoCompletionTextFieldManager new]];
    [self.autoCompletionManager setCompletionProviders:completionsProviders];
    [self.autoCompletionManager attachToTextField:self.textField];
    [self.autoCompletionManager setTextFieldFowardingDelegate:self];
}

Installation

Author

Fabio Pelosin, @fabiopelosin

License

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