2023-02-15 19:34:18 -05:00
|
|
|
//
|
|
|
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2023-09-30 13:33:54 -04:00
|
|
|
#import <UIKit/UIKit.h>
|
2023-02-15 19:34:18 -05:00
|
|
|
|
|
|
|
NS_INLINE NSException * _Nullable catchNSException(void(^_Nonnull tryBlock)(void)) {
|
|
|
|
@try {
|
|
|
|
tryBlock();
|
|
|
|
}
|
|
|
|
@catch (NSException *exception) {
|
|
|
|
return exception;
|
|
|
|
}
|
|
|
|
return nil;
|
|
|
|
}
|
2023-09-30 13:33:54 -04:00
|
|
|
|
|
|
|
// Define this private method so we can override it from MultiColumnCollectionViewLayout.
|
|
|
|
@interface UICollectionViewLayout (Tusker_Hacks)
|
|
|
|
-(UICollectionViewLayoutInvalidationContext *)_invalidationContextForUpdatedLayoutMargins:(UIEdgeInsets)newMargins;
|
|
|
|
@end
|