File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -359,16 +359,8 @@ extension SwiftMessagesSegue {
359
359
segue. messageView. installBackgroundVerticalView ( segue. containerView)
360
360
}
361
361
let toVC = transitionContext. viewController ( forKey: . to)
362
-
363
- // Nav controller automatically includes height of nav bar in,
364
- // the `preferredContentSize` and our logic needs to consider this.
365
- var navInset : CGFloat = 0
366
- if let nav = toVC as? UINavigationController {
367
- navInset = nav. navigationBar. frame. height
368
- }
369
-
370
362
if let preferredHeight = toVC? . preferredContentSize. height,
371
- preferredHeight - navInset > 0 {
363
+ preferredHeight > 0 {
372
364
segue. containerView. heightAnchor. constraint ( equalToConstant: preferredHeight) . with ( priority: UILayoutPriority ( rawValue: 951 ) ) . isActive = true
373
365
}
374
366
if let preferredWidth = toVC? . preferredContentSize. width,
You can’t perform that action at this time.
0 commit comments