nicklockwood / layout

A declarative UI framework for iOS
MIT License
2.23k stars 97 forks source link

best practice to make use of pageviewcontroller in layout #163

Closed wpcfan closed 5 years ago

wpcfan commented 5 years ago

I'd like to implement a tabbar controller positioned at top, so I think of using UIPageViewController, but I did not find the document about this? Is it possible to use the controller? any example? Thanks in advance

nicklockwood commented 5 years ago

@wpcfan Layout supports UIPageViewController, but there is no special XML support beyond allowing you to place the page controller in your layout. The child view controllers must be provided as normal using the UIPageViewControllerDataSource in code.

wpcfan commented 5 years ago

thanks for clarification, closing this issue