Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toggle to present and dismiss tooltip on demand #21

Merged
merged 10 commits into from
Apr 26, 2022

Conversation

chenium
Copy link
Contributor

@chenium chenium commented Apr 23, 2022

What

This change updates the tooltip api to allow on demand presentation and dismissal of the tooltip.
Addresses feature request: #20

Changes

  • Add isEnabled: Binding<Bool> to TooltipModifier and update the tooltip View extension api to include isEnabled
  • Remove implicit .animation(.easeInOut) in favor of .transition to allow developers the option to present and dismiss with animations.

Example

Kapture.2022-04-22.at.23.20.46.mp4

@bring-shrubbery bring-shrubbery linked an issue Apr 25, 2022 that may be closed by this pull request
@bring-shrubbery bring-shrubbery added the enhancement New feature or request label Apr 25, 2022
@bring-shrubbery bring-shrubbery merged commit 9f617c2 into quassum:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to present and dismiss a tooltip on demand
2 participants