Monntay / CustomTabBarShape

Give the UITabBar a custom shape
98 stars 21 forks source link

Custom tabBar causes table view to stop working/scrolling... #4

Open Anon-Mars opened 4 years ago

Anon-Mars commented 4 years ago
Screen Shot 2020-10-26 at 17 12 10

I tried the custom tabBar but after adding table view to screen, it does not scroll or interact with anything, please help.

kairzhan8 commented 3 years ago
Screen Shot 2020-10-26 at 17 12 10

I tried the custom tabBar but after adding table view to screen, it does not scroll or interact with anything, please help.

Can you show me how you added custom tabbar in UITabbarController class?

Sulemanali511 commented 2 years ago

same for me

Sulemanali511 commented 2 years ago

kairzhan8

override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { guard !clipsToBounds && !isHidden && alpha > 0 else { return nil } for member in subviews.reversed() { let subPoint = member.convert(point, from: self) guard let result = member.hitTest(subPoint, with: event) else { continue } return result } return nil }