Untitled

 avatar
unknown
plain_text
5 months ago
685 B
2
Indexable
{
        let cell = collectionView.cellForItem(at: indexPath) as? NewAgendaCollectionTypesCell
        let arrDict : NSDictionary = arrTagType[indexPath.row] as? NSDictionary ?? [:]
        let labelText: String = arrDict["type_name"] as? String ?? ""
        let size = (Utility.initUtility()?.width(of: String(format: "%@", labelText), with:FontBoldWithSize(14.0)) ?? 0)
        cell?.lblTypeName.text = labelText
        cell?.lblTypeName.font = UIFont(name: "DMSans24pt-Bold", size: 15.0)
        cell?.csBtnIconWidth.constant = 0
        var width: CGFloat = 0.0
        
        width += size + 36
        
        return CGSize(width: width > 40 ? width : 40, height: 30)
    }
Editor is loading...
Leave a Comment