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

MacCatalyst: Tooltips are not functional #22322

Open
daltzctr opened this issue May 9, 2024 · 3 comments
Open

MacCatalyst: Tooltips are not functional #22322

daltzctr opened this issue May 9, 2024 · 3 comments
Labels
area-controls-general General issues that span multiple controls, or common base classes such as View or Element platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@daltzctr
Copy link

daltzctr commented May 9, 2024

Description

Tooltips (as exposed via windows hover or android long hold) are not shown at all in MacCatalyst.

Steps to Reproduce

  1. Create a new MAUI app
  2. Add a tooltip with ToolTipProperties.Text="Hello" on any control
  3. Run on MacCatalyst
  4. Hover or long click and observe no tooltip

Link to public reproduction project repository

No response

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

Microsoft.Maui.Handlers.ViewHandler.ViewMapper.AppendToMapping("Customizations", (handler, view) =>
{
#if MACCATALYST
    if (view?.Handler?.PlatformView is UIKit.UIView iosView)
    {
        try 
        {
            iosView.AddInteraction(new UIKit.UIToolTipInteraction((ToolTipProperties.GetText((View)view)).ToString()));
        } catch (Exception) 
        {
            // gettext returns null if item does not have tooltip
        }
    }
#endif
});

Relevant log output

No response

@daltzctr daltzctr added the t/bug Something isn't working label May 9, 2024
Copy link
Contributor

github-actions bot commented May 9, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 10, 2024
@ninachen03
Copy link
Collaborator

Verified this issue with Visual Studio 17.6.11(build400)(8.0.21 & 8.0.7). Can repro it.

@PureWeen PureWeen added platform/macOS 🍏 macOS / Mac Catalyst legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor controls-tooltip labels May 10, 2024
@PureWeen
Copy link
Member

I think this might be related to garbage collection

I put some GC's into our device tests here
#19409

And when I force a GC the tooltips seem to vanish

@Eilon Eilon added area-controls-general General issues that span multiple controls, or common base classes such as View or Element and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor controls-tooltip labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-general General issues that span multiple controls, or common base classes such as View or Element platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants