PagingKit icon indicating copy to clipboard operation
PagingKit copied to clipboard

Without Storyboard

Open HermanKayy opened this issue 4 years ago • 1 comments

Hello can PagingKit be used without storyboard? I'm building everything programmatically currently.

HermanKayy avatar Apr 17 '21 01:04 HermanKayy

Yes. PagingMenuViewController and PagingContentViewController are inherited from UIViewController. So you can use them like UIViewController. If you don't know how to add a child vc to the parent vc programmatically, please look up on the internet.

let contentViewController = PagingContentViewController()
let menuViewController = PagingMenuViewController()

addChild(contentViewController)
addChild(menuViewController)

// add view with Autolayout or Autoresizing

kazuhiro4949 avatar Apr 17 '21 04:04 kazuhiro4949