whitesmith / WSTagsField

An iOS text field that represents tags, hashtags, tokens in general.
MIT License
1.28k stars 226 forks source link

How to reduce the height of a cell? #71

Closed aleksandr-govorukhin closed 6 years ago

aleksandr-govorukhin commented 6 years ago

How to reduce the distance between cells?

aleksandr-govorukhin commented 6 years ago
2018-02-26 21 04 08 2018-02-26 21 03 22
aleksandr-govorukhin commented 6 years ago

This happens after adding tags - cell.tagsField.addTags(tags), Where tags as [String]

ricardopereira commented 6 years ago

@Qumonking are you using AutoLayout?

aleksandr-govorukhin commented 6 years ago

@ricardopereira yes, only this happed

     cell.tagsField.onDidChangeHeightTo = { sender, height in
            print("HeightTo \(height)")

            cell.frame.size.height = height

            if self.check {
                tableView.reloadData()
            }

            self.check = false

            tableView.beginUpdates()
            tableView.endUpdates()
        }
ricardopereira commented 6 years ago

@Qumonking Which version are you using? Is that WSTagsField in an UITableViewCell?

aleksandr-govorukhin commented 6 years ago

@ricardopereira last version

2018-03-06 23 48 59 2018-03-06 23 49 10 2018-03-06 23 49 24 2018-03-06 23 49 37
ricardopereira commented 6 years ago

A new version has been released https://github.com/whitesmith/WSTagsField/releases/tag/3.0.0. Can you please check if this has been fixed? If not, then reopen the issue please. Thanks!