Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions SearchTextField/Classes/SearchTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down