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.
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];
}
DSAutoCompletionKit is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "DSAutoCompletionKit"
Fabio Pelosin, @fabiopelosin
DSAutoCompletionKit is available under the MIT license. See the LICENSE file for more info.