From f2d0518ec07306da7367c5d31ecf1e977cfc0b79 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Tue, 17 Jul 2018 09:52:20 -0700 Subject: [PATCH] Fix warning for ASLayout method override for the designated initializer of the superclass '-init' not found --- Source/Layout/ASLayout.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Layout/ASLayout.mm b/Source/Layout/ASLayout.mm index 21c94fb11..a8b7cacee 100644 --- a/Source/Layout/ASLayout.mm +++ b/Source/Layout/ASLayout.mm @@ -134,6 +134,12 @@ - (instancetype)initWithLayoutElement:(id)layoutElement return self; } +- (instancetype)init +{ + ASDisplayNodeAssert(NO, @"Use the designated initializer"); + return [self init]; +} + #pragma mark - Class Constructors + (instancetype)layoutWithLayoutElement:(id)layoutElement