Skip to content

[BUG] [iOS] KeyboardExtensions, throws exception 'System.NotSupportedException: Arg_NotSupportedException' #2244

@mnowacki

Description

@mnowacki

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

I use bool KeyboardExtensions.IsSoftKeyboardShowing(ITextInput) in my code. It worked ok but when i upgraded to new version 9.1.0 it started throwing exception System.NotSupportedException: Arg_NotSupportedException. The problem is just in release mode. In debug is ok. When i downgraded to version 9.0.3 it works ok again.

Expected Behavior

Works without throwing exceptions in Release mode.

Steps To Reproduce

  1. Just use in code bool KeyboardExtensions.IsSoftKeyboardShowing(ITextInput).
  2. Compile in Release mode .
  3. Run on ios.

Link to public reproduction project repository

none

Environment

- .NET MAUI CommunityToolkit:9.1.0
- OS:ios 17.6.1
- .NET MAUI:8.0.8

Anything else?

I think it's related to aot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions