ESTabBarController icon indicating copy to clipboard operation
ESTabBarController copied to clipboard

The deselectAnimation method not work when press default selected index tabBar on first time

Open joshua24322 opened this issue 5 years ago • 2 comments

I have been setup iconColor = .white and highlightIconColor = .systemBlue in my BasicContentView.

When app launch, press the Home tabBar while it tabBar is default selectedIndex , the override func selectAnimation(animated: Bool, completion: (() -> ())?) be call.

Then press the next Find tabBart or another tabBar, the override func deselectAnimation(animated: Bool, completion: (() -> ())?) won't work for Home tabBar , resulting in the Home tabBar still highlight status.

This issue can be recover by re-press the Home tabBar, the override func deselectAnimation(animated: Bool, completion: (() -> ())?) start work for it.

is there any idea or experience for this symptom ?

highlight issue

joshua24322 avatar Nov 22 '19 04:11 joshua24322

My temporary solution is setting the selectedIndex = 1 (no equal to Home tabBar) and selectedViewController = self.viewControllers?.first (the viewController equal to Home tabBar), implement on subclass viewDidLoad of ESTabBarController.

Is there any better workaround for it?

joshua24322 avatar Nov 22 '19 05:11 joshua24322

I am also facing this issue.

inoue0124 avatar Dec 15 '19 03:12 inoue0124