Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 2.01 KB

README.md

File metadata and controls

53 lines (36 loc) · 2.01 KB

IRFAutoCompletionKit

Version Platform Build Status

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

DSAutoCompletionKit is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "DSAutoCompletionKit"

Author

Fabio Pelosin, @fabiopelosin

License

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