ElaWorkshop / TagListView

Simple and highly customizable iOS tag list view, in Swift.
MIT License
2.64k stars 492 forks source link

How to work with tableView #248

Open i1020242 opened 4 years ago

i1020242 commented 4 years ago

Anyone suggest me

rayastar commented 4 years ago
_override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! Cell

        cell.biggerTagListView.delegate = self
        cell.biggerTagListView.textFont = .systemFont(ofSize: 15)
        cell.biggerTagListView.shadowRadius = 2
        cell.biggerTagListView.shadowOpacity = 0.4
        cell.biggerTagListView.shadowColor = UIColor.black
        cell.biggerTagListView.shadowOffset = CGSize(width: 1, height: 1)
        cell.biggerTagListView.alignment = .left

        let el : object = self.array[indexPath.row]
        let array : [String] =  (el.text).components(separatedBy: ",")

        cell.biggerTagListView.removeAllTags()
        cell.biggerTagListView.addTags(array)

        return cell
    }_
thisarar commented 4 years ago

This will affect the table view smooth scrolling

1284115201 commented 4 years ago

@thisarar me too

1284115201 commented 4 years ago

@thisarar I solved it based on a boolean value

thisarar commented 4 years ago

How did you do it?

SSnowCat commented 3 years ago

How did you do it?

did you solve the problem?

anelad commented 3 years ago

https://github.com/ElaWorkshop/TagListView/issues/191#issuecomment-832011152