Skip to content

Searchbar is missing from UI description #892

@odrobnik

Description

@odrobnik

I have a .searchable bar on a nav bar.

Image

The UI description omits the Search Field embedded in the nav bar, as inspected with the Accessibility Inspector:

Image

In the accessibility output we can see that the nav bar doesn't have any children:

[
  {
    "AXFrame" : "{{0, 0}, {1032, 1376}}",
    "AXUniqueId" : null,
    "frame" : {
      "y" : 0,
      "x" : 0,
      "width" : 1032,
      "height" : 1376
    },
    "role_description" : "application",
    "AXLabel" : "SwiftLEGO",
    "content_required" : false,
    "type" : "Application",
    "title" : null,
    "help" : null,
    "custom_actions" : [

    ],
    "AXValue" : null,
    "enabled" : true,
    "role" : "AXApplication",
    "children" : [
      {
        "AXFrame" : "{{0, 32}, {1032, 166}}",
        "AXUniqueId" : "Andrea",
        "frame" : {
          "y" : 32,
          "x" : 0,
          "width" : 1032,
          "height" : 166
        },
        "role_description" : "Nav bar",
        "AXLabel" : null,
        "content_required" : false,
        "type" : "Group",
        "title" : null,
        "help" : null,
        "custom_actions" : [

        ],
        "AXValue" : null,
        "enabled" : true,
        "role" : "AXGroup",
        "children" : [

        ],
        "subrole" : null,
        "pid" : 57546
      },

There's something special about where in the hierarchy the Search Field is positioned. If I select it in Accessibility Inspector:

Image

Yet, if I select the Navbar itself, it doesn't have any children, which is probably why the search field is being skipped.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions