Skip to content

[iOS][maccatalyst] SearchBar BackgroundColor is black when set to transparent #11677

@matt-goldman

Description

@matt-goldman

Description

On iOS and MacCatalyst, if you set the BackgroundColor of a SearchBar to Transparent, the background goes black. This only seems to occur if you change it or set it explicitly and not with the default value.

Does not occur on Windows or Android.

Steps to Reproduce

  1. Create a new .NET MAUI app
  2. Add a SearchBar
  3. Explicitly set the BackgroundColor property of the SearchBar to Transparent, or change it to Transparent at runtime
  4. Observe the black background

Link to public reproduction project repository

https://github.com/matt-goldman/MauiTransparentBackgroundBug

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

macOS 13.0.1, iOS 14 (not tested on other versions)

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions