Skip to content

Small kit designed to provide autocompletion triggered by a character. Loves emojis!

License

Notifications You must be signed in to change notification settings

fabiopelosin/IRFAutoCompletionKit

Repository files navigation

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.

About

Small kit designed to provide autocompletion triggered by a character. Loves emojis!

Resources

License

Stars

Watchers

Forks

Packages

No packages published