When the device theme is set to dark mode and the application's theme is configured to light mode using the code - overrideUserInterfaceStyle = .light, the skeleton component still renders in dark theme colors. This behavior is inconsistent with the app's theme and creates a visual inconsistency for users.
Similarly, when the device theme is light and the app's theme is dark, the skeleton component should adapt to the light theme colors defined by the application. However, it continues to display in dark theme colors, leading to an inconsistent user experience.
What type of issue is this? (place an x in one of the [ ])
[x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] discussion
Requirements (place an x in each of the [ ])
[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
SkeletonView Environment:
SkeletonView version: - 1.30.4
Xcode version: - tried on multiple versions - 15.0 & 15.2 & 15.3
Swift version: swift 5.9 & 5.10
Steps to reproduce:
Please replace this with the steps to reproduce the behavior.
Set the device theme to dark mode.
Configure the app's theme to light mode using overrideUserInterfaceStyle = .light.
Observe the skeleton component rendering in dark theme colors instead of light theme colors.
Expected result:
When the app's theme is set to light mode using overrideUserInterfaceStyle = .light, the skeleton component should render in light theme colors regardless of the device's theme settings.
Conversely, when the app's theme is dark, the skeleton component should adapt to display in dark theme colors to maintain consistency with the overall app theme.
Actual result:
Currently, when the app's theme is set to light mode using overrideUserInterfaceStyle = .light, the skeleton component renders in dark theme colors, which is inconsistent with the app's light theme.
Similarly, when the app's theme is dark, the skeleton component continues to display in dark theme colors, rather than adapting to the app's dark theme settings.
Description
When the device theme is set to dark mode and the application's theme is configured to light mode using the code -
overrideUserInterfaceStyle = .light
, the skeleton component still renders in dark theme colors. This behavior is inconsistent with the app's theme and creates a visual inconsistency for users. Similarly, when the device theme is light and the app's theme is dark, the skeleton component should adapt to the light theme colors defined by the application. However, it continues to display in dark theme colors, leading to an inconsistent user experience.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
SkeletonView Environment:
SkeletonView version: - 1.30.4 Xcode version: - tried on multiple versions - 15.0 & 15.2 & 15.3 Swift version: swift 5.9 & 5.10
Steps to reproduce:
Please replace this with the steps to reproduce the behavior.
Expected result:
overrideUserInterfaceStyle = .light
, the skeleton component should render in light theme colors regardless of the device's theme settings.Actual result:
Attachments: