if self.traitCollection.horizontalSizeClass == .regular { height = self.view.safeAreaInsets.top + CGFloat(44) + CGFloat(10) + CGFloat(10) } else { if self.view.bounds.size.width < self.view.bounds.size.height { height = self.view.safeAreaInsets.top + CGFloat(44) + CGFloat(10) + CGFloat(44) + CGFloat(10) + CGFloat(10) } else { height = self.view.safeAreaInsets.top + CGFloat(44) + CGFloat(10) + CGFloat(10) } }