diff --git a/SearchTextField/Classes/SearchTextField.swift b/SearchTextField/Classes/SearchTextField.swift index 9cf8f55..9d64991 100755 --- a/SearchTextField/Classes/SearchTextField.swift +++ b/SearchTextField/Classes/SearchTextField.swift @@ -652,18 +652,25 @@ open class SearchTextFieldItem { public var title: String public var subtitle: String? public var image: UIImage? - - public init(title: String, subtitle: String?, image: UIImage?) { + public var id: Int? + + public init(title: String, subtitle: String?, image: UIImage?, id:Int?) { self.title = title self.subtitle = subtitle self.image = image + self.id = id } - public init(title: String, subtitle: String?) { + public init(title: String, subtitle: String?, id:Int?) { self.title = title self.subtitle = subtitle + self.id = id } + public init(title: String, id:Int?) { + self.title = title + self.id = id + } public init(title: String) { self.title = title }