Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit c6fa897

Browse files
author
Scott Goodson
committed
Add nullability annotations to newer APIs that lacked it from the original PR.
1 parent 882d4b3 commit c6fa897

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

AsyncDisplayKit-Prefix.gcda

0 Bytes
Binary file not shown.

AsyncDisplayKit/ASDisplayNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)();
2727
/**
2828
* UIView creation block. Used to create the backing view of a new display node.
2929
*/
30-
typedef UIViewController *(^ASDisplayNodeViewControllerBlock)();
30+
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)();
3131

3232
/**
3333
* CALayer creation block. Used to create the backing layer of a new display node.

AsyncDisplayKit/ASTableView.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ NS_ASSUME_NONNULL_BEGIN
361361

362362
@end
363363

364-
<<<<<<< HEAD
365-
NS_ASSUME_NONNULL_END
366-
=======
367-
@protocol ASTableViewDelegate <ASTableDelegate>;
364+
@protocol ASTableViewDelegate <ASTableDelegate>
368365
@end
369-
>>>>>>> master
366+
367+
NS_ASSUME_NONNULL_END

AsyncDisplayKit/ASViewController.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ @implementation ASViewController
1818

1919
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
2020
{
21-
return [self initWithNode:nil];
21+
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
22+
return [self initWithNode:[[ASDisplayNode alloc] init]];
2223
}
2324

2425
- (instancetype)initWithCoder:(NSCoder *)aDecoder
2526
{
26-
return [self initWithNode:nil];
27+
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
28+
return [self initWithNode:[[ASDisplayNode alloc] init]];
2729
}
2830

2931
- (instancetype)initWithNode:(ASDisplayNode *)node

0 commit comments

Comments
 (0)