Closed shimastripe closed 1 year ago
I use the following code to solve this problem.
class YourTabBarController: ESTabBarController {
init() {
super.init(nibName: nil, bundle: nil)
if #available(iOS 13.4, *) {
view.subviews.forEach({
$0.addInteraction(UIPointerInteraction(delegate: self))
})
tabBar.addInteraction(UIPointerInteraction(delegate: self))
}
}
}
@available(iOS 13.4, *)
extension YourTabBarController: UIPointerInteractionDelegate {
func pointerInteraction(_ interaction: UIPointerInteraction, styleFor region: UIPointerRegion) -> UIPointerStyle? {
return nil
}
}
I checked an example app in this repostiory. Please check.
iPad OS Supports mouse cursor. When hovering UITabBarItem, the cursor surrounds UITabBarItem. But in the case of ESTabBarItem, the cursor flies up.