Closed mehdin13 closed 5 years ago
define selected index inside viewDidAppear works like a charm ;)
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) segmentControl.selectedSegmentioIndex = 0 }
hey, @mehdin13!
I've just checked the issue with the example project (changed selectedSegmentioIndex
's return value to 1
inside ExampleViewController.swift
and it works just fine
please reopen and let me know if I misunderstood your issue
hi @rnkyr. thank you for helping. there is a bug in library.the problem is not index and selected index work fine.the bug is in container. in first time view loaded it's load container that related with index 0 not selected index. you can see that in example project if you give more attention to container view.
it's not closed yet.the problem still remain
I have the same problem here.
the bug already fixed.update to version 3.3. thank @rnkyr.
when specify selected item manually for any index , container view still remain in index 0