lucoceano / Pager

Pager is the simplest and best way to implement sliding view controllers in Swift
MIT License
232 stars 41 forks source link

How to find out which tab index view is active ? #34

Closed dp4dileep closed 7 years ago

lfarah commented 7 years ago

What do you mean by "active"?

dp4dileep commented 7 years ago

selected view

lfarah commented 7 years ago

You can use the delegate:

    @objc optional func didChangeTabToIndex(_ pager: PagerController, index: Int)