Skip to content

Commit 1c4a70b

Browse files
authored
Merge pull request #79 from abdullakh35/master
added cell number of lines = 0 and line break mode by word wrapping
2 parents 9252baa + da79f54 commit 1c4a70b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iOSDropDown/Classes/iOSDropDown.swift

+2
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ extension DropDown: UITableViewDataSource {
401401
cell!.selectionStyle = .none
402402
cell?.textLabel?.font = self.font
403403
cell?.textLabel?.textAlignment = self.textAlignment
404+
cell?.textLabel?.numberOfLines = 0
405+
cell?.textLabel?.lineBreakMode = .byWrodWrapping
404406
return cell!
405407
}
406408
}

0 commit comments

Comments
 (0)