ElaWorkshop / TagListView

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

Disable Long press functionality #274

Open tushar666 opened 3 years ago

tushar666 commented 3 years ago

Hi,

How to disable the long press on tagview?

lvandyk commented 3 years ago

+1

GaneshRajuGalla commented 1 year ago
    // On long press, deselect all tags except this one

// tagView.onLongPress = { [unowned self] this in // self.tagViews.forEach { // $0.isSelected = $0 == this // } // }

    tagView.onTap = { [unowned self] this in
        self.tagViews.forEach {
            $0.isSelected = $0 == this
        }
    }