

#import <Foundation/Foundation.h>
#import "MyAutocompleteItemsSource.h"
#import "MyAutocompletionCellFactory.h"
#import "MySuggestion.h"


@interface MyAutocompleteView : UIView

@property(readonly)MySuggestion* selectedSuggestion;
@property(readonly) NSArray *suggestions;

@property(copy) void (^didAutocompleteWith)(MySuggestion *);

@property(nonatomic) UIColor *separatorColor;
@property(nonatomic) UITableViewCellSeparatorStyle separatorStyle;

@property(nonatomic) CGFloat topMargin;

+ (MyAutocompleteView *)autocompleteViewBindedTo:(UITextField *)textField
                                     usingSource:(MyAutocompleteItemsSource*) itemsSource
                                     cellFactory:(MyAutocompletionCellFactory*)factory
//                                    presentingIn:(UIViewController *)controller
                                      parentView:(UIView*) view;
@property (strong,nonatomic) MyAutocompleteItemsSource* itemsSource;
@end