lucoceano / Pager

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

Is it possible to have fixed 2 non moving tabs? #45

Closed jovanpreet closed 6 years ago

jovanpreet commented 7 years ago

If i have 2 tabs initially both tabs are left aligned but as soon as i move to next tab the center property starts working. Even i set centerCurrentTab to false it still doesn't work

abhii24 commented 7 years ago

Set centerCurrentTab = true fixFormerTabsPositions = false fixLaterTabsPosition = true and then try it! This might work for you @jovanpreet

jovanpreet commented 7 years ago

ok will try and let you know

jovanpreet commented 7 years ago

ok it worked. but any way to have selected tab image different from normal image

abhii24 commented 7 years ago

@jovanpreet i have to check for it. will let you know about it then

jovanpreet commented 7 years ago

ok

nitishmakhija commented 7 years ago

it doesn't work for me when I am selecting the second tab it automatically centers it ezgif com-optimize

nitishmakhija commented 7 years ago

centerCurrentTab = true fixFormerTabsPositions = false fixLaterTabsPosition = false

worked for me