ContainerView with multiple embed segues

前端 未结 7 1997
走了就别回头了
走了就别回头了 2021-01-30 10:38

Is there a way to have a single ContainerView with multiple embed segues? The aim is for a ContainerView to hold a few different ViewControllers depending on what buttons have b

7条回答
  •  既然无缘
    2021-01-30 11:18

    In your working viewController drag a uiview and set constraint to top, leading, trailing, bottom to safe area (Iphone X serise).

    Now put Container view (Content View) inside that UIView. Put as many content views as you want inside that UIView and embed to respective ViewContrllers.

    Worked for me.

提交回复
热议问题