quassum / SwiftUI-Tooltip

Easy Tooltip for your SwiftUI Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bounce animation is no longer working properly

Mahekaru opened this issue · comments

Describe the bug
The tooltip snaps over and snaps back. There isn't a smooth motion as shown in the documentation.

To Reproduce
Added a tooltip to my view.
I added the configurations as shown in the documetation

var tooltipConfig = DefaultTooltipConfig() init() { self.tooltipConfig.enableAnimation = true self.tooltipConfig.animationOffset = 10 self.tooltipConfig.animationTime = 1 self.tooltipConfig.backgroundColor = .primaryColor self.tooltipConfig.borderColor = .secondaryColor }

the tool tip does show, but the animation is not fluid, it just snaps into place, then back.

Expected behavior
The tooltip smoothly glides up and down as shown in the documentation.

Smartphone (please complete the following information):

  • Device: IPhone13
  • OS: [e.g. iOS15.5]

Additional context
Add any other context about the problem here.