Skip to content

Commit

Permalink
Fix warning for ASLayout method override for the designated initializ…
Browse files Browse the repository at this point in the history
…er of the superclass '-init' not found
  • Loading branch information
maicki authored and Adlai-Holler committed Jul 18, 2018
1 parent db0f515 commit f2d0518
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Layout/ASLayout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ - (instancetype)initWithLayoutElement:(id<ASLayoutElement>)layoutElement
return self;
}

- (instancetype)init
{
ASDisplayNodeAssert(NO, @"Use the designated initializer");
return [self init];
}

#pragma mark - Class Constructors

+ (instancetype)layoutWithLayoutElement:(id<ASLayoutElement>)layoutElement
Expand Down

0 comments on commit f2d0518

Please sign in to comment.