This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug] PreferredStatusBarStyle is not called inside PageRenderers when using the Shell #14246
Copy link
Copy link
Closed
Description
Description
When using the Shell the PreferredStatusBarStyle
method is not called in an iOS PageRenderer and therefore the colour of the status bar text cannot be changed on devices using latest OS.
Steps to Reproduce
- Create Shell Forms app
- Add a least two child pages
- Create PageRenderer in iOS for the second page
- Override method
PreferredStatusBarStyle
to return different style to default specified in info.plist - Place a breakpoint on the method you just created
- Run the app and view the second page
Expected Behavior
Breakpoint is hit and on continuation the colour of the status bar text on iOS changes from the default colour specified in info.plist
Actual Behavior
The breakpoint is not hit
Basic Information
- Version with issue: 5.0.0.2012
- Last known good version: Unknown
- Platform Target Frameworks:
- iOS: 14.5
- NuGet Packages:
- Affected Devices: Simulator/Hardware
Environment
Show/Hide Visual Studio info
=== Visual Studio Professional 2019 for Mac ===
Version 8.9.8 (build 7)
Installation UUID: e8aebc75-fa53-4e35-84db-80d885788bd0
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000125
=== Mono Framework MDK ===
Runtime:
Mono 6.12.0.125 (2020-02/8c552e98bd6) (64-bit)
Package version: 612000125
=== Roslyn (Language Service) ===
3.9.0-6.21152.10+c10f884b30737542ddd84ca889a4aad9281ce210
=== NuGet ===
Version: 5.8.0.6860
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/5.0.202/Sdks
SDK Versions:
5.0.202
5.0.201
5.0.103
5.0.102
5.0.101
3.1.408
3.1.407
3.1.406
3.1.405
3.1.404
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
3.1.14
3.1.13
3.1.12
3.1.11
3.1.10
=== .NET Core 3.1 SDK ===
SDK: 3.1.408
=== Xamarin.Profiler ===
Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 12.5 (18205)
Build 12E262
=== Xamarin.Mac ===
Version: 7.10.0.5 (Visual Studio Professional)
Hash: ab40b131d
Branch: xcode12.5
Build date: 2021-04-22 08:56:41-0400
=== Xamarin.iOS ===
Version: 14.16.0.5 (Visual Studio Professional)
Hash: ab40b131d
Branch: xcode12.5
Build date: 2021-04-22 08:56:42-0400
=== Xamarin Designer ===
Version: 16.9.0.324
Hash: b1e216c75
Branch: remotes/origin/d16-9
Build date: 2021-04-16 00:02:50 UTC
=== Xamarin.Android ===
Version: 11.2.2.1 (Visual Studio Professional)
Commit: xamarin-android/d16-9/877f572
Android SDK: /Users/davenash/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
None installed
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 30.0.2
Build Information:
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@54f8c24
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/davenash/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.9.0.22
Hash: a391de2
Branch: remotes/origin/dev/bretjohn/readme-tweak~3
Build date: 2021-04-21 21:23:40 UTC
=== Android Device Manager ===
Version: 16.9.0.17
Hash: fc2b3db
Branch: remotes/origin/dev/jmt/d16-9bump~1
Build date: 2021-04-21 21:23:58 UTC
=== Build Information ===
Release ID: 809080007
Git revision: 85b793ce322599fe423c2d233c346b13824ca4d8
Build date: 2021-04-28 12:54:34-04
Build branch: release-8.9
Xamarin extensions: 85b793ce322599fe423c2d233c346b13824ca4d8
=== Operating System ===
Mac OS X 10.16.0
Darwin 20.3.0 Darwin Kernel Version 20.3.0
Thu Jan 21 00:07:06 PST 2021
root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Workaround
I have been working on a fix and will create a separate PR and will link this issue.