You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwiftLint complains about the force casting from AnyObject returned by collectionView.dequeueReusableCellWithReuseIdentifier to UICollectionViewCell, but there's really no other way. The SDK requires you to use this method to fetch a cell to return, and you have to return a UICollectionViewCell.
Is there something I can wrap these sorts of exceptions in, similar to Clang's #pragma's maybe, so SwiftLint ignores them?
The text was updated successfully, but these errors were encountered:
We'd love to add that functionality! We're currently tracking this as #4, so I'll be closing this issue as a duplicate, but please feel free to continue the conversation there!
Say you have a UICollectionViewController, with the following method:
SwiftLint complains about the force casting from AnyObject returned by
collectionView.dequeueReusableCellWithReuseIdentifier
to UICollectionViewCell, but there's really no other way. The SDK requires you to use this method to fetch a cell to return, and you have to return a UICollectionViewCell.Is there something I can wrap these sorts of exceptions in, similar to Clang's
#pragma
's maybe, so SwiftLint ignores them?The text was updated successfully, but these errors were encountered: