MAUI : Dark mode is hiding visual element in IOS

Pratap Singh, Ayush 20 Reputation points
2024-01-03T09:50:23.45+00:00

On IOS whenever I am changing system, Light mode to Dark mode, and visit to my maui application , some visual elements are getting dark due to which some labels and other visuals are also hiding. see below attachments for the reference.


download.png download (1).png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,578 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,995 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
814 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,286 Reputation points Microsoft Vendor
    2024-01-04T08:55:36.3933333+00:00

    Hello,

    It's a known issue reported at GitHub- [iOS] MAUI Theme breaks when system prompt visible · Issue #19614 · dotnet/maui (github.com)

    As described in the issue, you could try handling themes yourself by setting UserAppTheme.

    Please see Detect the current system theme and Set the current user theme.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.