From d6f85b32c4f51fd094a3ab81410b4fb906092a05 Mon Sep 17 00:00:00 2001 From: mag Date: Sat, 18 Nov 2017 08:51:20 -0400 Subject: [PATCH 1/2] Suppress `deprecated` warning Suppress `deprecated` warning. Here it's better to use isEmpty instead of `count`. --- Sources/TabCollectionCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TabCollectionCell.swift b/Sources/TabCollectionCell.swift index 1dd13a5..4c034e3 100644 --- a/Sources/TabCollectionCell.swift +++ b/Sources/TabCollectionCell.swift @@ -47,7 +47,7 @@ class TabCollectionCell: UICollectionViewCell { } override func sizeThatFits(_ size: CGSize) -> CGSize { - if item.characters.count == 0 { + if item.isEmpy { return CGSize.zero } From 52121bcb6028e68a2e8c45a035b8c6fba8e42c3f Mon Sep 17 00:00:00 2001 From: MaG21 Date: Fri, 12 Jan 2018 15:17:49 -0400 Subject: [PATCH 2/2] Update TabCollectionCell.swift --- Sources/TabCollectionCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TabCollectionCell.swift b/Sources/TabCollectionCell.swift index 4c034e3..e07fae0 100644 --- a/Sources/TabCollectionCell.swift +++ b/Sources/TabCollectionCell.swift @@ -47,7 +47,7 @@ class TabCollectionCell: UICollectionViewCell { } override func sizeThatFits(_ size: CGSize) -> CGSize { - if item.isEmpy { + if item.isEmpty { return CGSize.zero }