@@ -6,7 +6,7 @@ public enum SPDiffableCollectionCellProviders {
6
6
Defaults cell provider, which can help you doing side bar faster.
7
7
You can do your providers and ise its with more flexible.
8
8
*/
9
- @available ( iOS 14 , * )
9
+ @available ( iOS 14 , macCatalyst 14 , * )
10
10
public static var sideBar : SPDiffableCollectionCellProvider {
11
11
let cellProvider : SPDiffableCollectionCellProvider = { ( collectionView, indexPath, item) -> UICollectionViewCell ? in
12
12
let providers = [ sideBarItem, sideBarButton, sideBarHeader]
@@ -20,7 +20,7 @@ public enum SPDiffableCollectionCellProviders {
20
20
return cellProvider
21
21
}
22
22
23
- @available ( iOS 14 , * )
23
+ @available ( iOS 14 , macCatalyst 14 , * )
24
24
public static var sideBarItem : SPDiffableCollectionCellProvider {
25
25
let cellProvider : SPDiffableCollectionCellProvider = { ( collectionView, indexPath, item) -> UICollectionViewCell ? in
26
26
guard let item = item as? SPDiffableSideBarItem else { return nil }
@@ -36,7 +36,7 @@ public enum SPDiffableCollectionCellProviders {
36
36
return cellProvider
37
37
}
38
38
39
- @available ( iOS 14 , * )
39
+ @available ( iOS 14 , macCatalyst 14 , * )
40
40
public static var sideBarButton : SPDiffableCollectionCellProvider {
41
41
let cellProvider : SPDiffableCollectionCellProvider = { ( collectionView, indexPath, item) -> UICollectionViewCell ? in
42
42
guard let item = item as? SPDiffableSideBarButton else { return nil }
@@ -49,7 +49,7 @@ public enum SPDiffableCollectionCellProviders {
49
49
return cellProvider
50
50
}
51
51
52
- @available ( iOS 14 , * )
52
+ @available ( iOS 14 , macCatalyst 14 , * )
53
53
public static var sideBarHeader : SPDiffableCollectionCellProvider {
54
54
let cellProvider : SPDiffableCollectionCellProvider = { ( collectionView, indexPath, item) -> UICollectionViewCell ? in
55
55
guard let item = item as? SPDiffableSideBarHeader else { return nil }
0 commit comments