Skip to content

Conversation

mohshin-shah
Copy link

No description provided.

Copy link

@mazen-kasser mazen-kasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, just run swiftlint to adjust the spacing and indention.

}
/// The strings to be shown on as suggestions, setting the value of this automatically reload the tableview
public var autoCompleteStrings:[String]?{
open var autoCompleteStrings:[String]?{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space open var autoCompleteStrings:[String]? {

self.clearButtonMode = .Always
self.addTarget(self, action: "textFieldDidChange", forControlEvents: .EditingChanged)
self.addTarget(self, action: "textFieldDidEndEditing", forControlEvents: .EditingDidEnd)
autoCompleteAttributes = [NSForegroundColorAttributeName:UIColor.black]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess no need to mentioned UIColor just .black

cell?.textLabel?.font = autoCompleteTextFont
cell?.textLabel?.textColor = autoCompleteTextColor
cell?.textLabel?.text = autoCompleteStrings![indexPath.row]
cell?.textLabel?.text = autoCompleteStrings![(indexPath as NSIndexPath).row]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it IndexPath ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update if on swift 3. How I can i Download from pull request?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I have converted in swift 3 and implemented in my code
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants