mirror of https://github.com/oxen-io/session-ios
Partially fix remaining UI issues
parent
2e8d62b3ee
commit
750a25622b
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
@interface NSObject (Casting)
|
||||||
|
|
||||||
|
- (instancetype)as:(Class)cls;
|
||||||
|
|
||||||
|
@end
|
@ -0,0 +1,10 @@
|
|||||||
|
#import "NSObject.h"
|
||||||
|
|
||||||
|
@implementation NSObject (Casting)
|
||||||
|
|
||||||
|
- (instancetype)as:(Class)cls {
|
||||||
|
if ([self isKindOfClass:cls]) { return self; }
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in New Issue