diff --git a/KinEcosystem/KinEcosystem/View/nibs/NoOffersViewController.xib b/KinEcosystem/KinEcosystem/View/nibs/NoOffersViewController.xib index ee74992..0a5908f 100644 --- a/KinEcosystem/KinEcosystem/View/nibs/NoOffersViewController.xib +++ b/KinEcosystem/KinEcosystem/View/nibs/NoOffersViewController.xib @@ -1,11 +1,9 @@ - - - - + + - + @@ -42,9 +40,11 @@ Label - + + + diff --git a/KinEcosystem/KinEcosystem/View/notNibs/OffersViewController.swift b/KinEcosystem/KinEcosystem/View/notNibs/OffersViewController.swift index a3773dc..f3402f0 100644 --- a/KinEcosystem/KinEcosystem/View/notNibs/OffersViewController.swift +++ b/KinEcosystem/KinEcosystem/View/notNibs/OffersViewController.swift @@ -197,6 +197,7 @@ extension OffersViewController: UICollectionViewDelegate, UICollectionViewDataSo } else { if children.first(where: { $0 is NoOffersViewController }) == nil { let noOffersViewController = NoOffersViewController(nibName: "NoOffersViewController", bundle: KinBundle.ecosystem.rawValue) + noOffersViewController.view.translatesAutoresizingMaskIntoConstraints = false addChild(noOffersViewController) view.addSubview(noOffersViewController.view) NSLayoutConstraint.activate([ diff --git a/KinEcosystem/KinEcosystem/View/notNibs/SheetViewController.swift b/KinEcosystem/KinEcosystem/View/notNibs/SheetViewController.swift index 0bb3c57..ab227fb 100644 --- a/KinEcosystem/KinEcosystem/View/notNibs/SheetViewController.swift +++ b/KinEcosystem/KinEcosystem/View/notNibs/SheetViewController.swift @@ -110,11 +110,12 @@ class SheetNavigationControllerWrapper: UIViewController, SheetPresented, Themed view.addSubview(wrappedNavigationController.view) addChild(wrappedNavigationController) wrappedNavigationController.didMove(toParent: self) + let safeArea = bcSafeAreaLayoutGuide NSLayoutConstraint.activate([ - wrappedNavigationController.view.topAnchor.constraint(equalTo: bcSafeAreaLayoutGuide.topAnchor, constant: 16.0), - wrappedNavigationController.view.leftAnchor.constraint(equalTo: bcSafeAreaLayoutGuide.leftAnchor, constant: 0.0), - wrappedNavigationController.view.rightAnchor.constraint(equalTo: bcSafeAreaLayoutGuide.rightAnchor, constant: 0.0), - wrappedNavigationController.view.bottomAnchor.constraint(equalTo: bcSafeAreaLayoutGuide.bottomAnchor, constant: 0.0) + wrappedNavigationController.view.topAnchor.constraint(equalTo: safeArea.topAnchor, constant: 16.0), + wrappedNavigationController.view.leftAnchor.constraint(equalTo: safeArea.leftAnchor, constant: 0.0), + wrappedNavigationController.view.rightAnchor.constraint(equalTo: safeArea.rightAnchor, constant: 0.0), + wrappedNavigationController.view.bottomAnchor.constraint(equalTo: safeArea.bottomAnchor, constant: 0.0) ]) view.setNeedsLayout() }