Check this thread in SO please https://stackoverflow.com/questions/48018095/xcode-9-1-and-ios-11-causing-crash I posted the solution there: Two lines must be in **viewWillLayoutSubviews** instead of **setup** method. ``` self.enableShadow = YES; self.enableSwipeGesture = YES; ```