-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios Shell #22452
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Attempted to build for ios 17.2 same result. on android this works |
Can repro this issue at iOS platform on the latest 17.10 Preview 7(8.0.20&8.0.21). |
What is the status for this issue? |
Update on my part, Same issue still |
@Gekidoku I'm not clear on your exact blocker here This warning
Isn't a blocker and shouldn't break your app |
I dont really have more info. Since the app stops with that being the last message in the console. The repro project worked in earlier versions of .net 8 as far as I see i made no big changes to it. As its the weekend now and my code is at work i can't provide more info at this time. Monday I'll try another build and see if I can find more in the console. |
Ok i have two screen recordings to the info .plist Here is the video of my actual app. as you can see the last thing i see in the debug console is |
Note that if i change my project file in my unfocus app to be net7.0-ios; However for my actual app this isnt a solution. and some libraries i use only have a .net8 version. |
Seeing as the bot set this as done last month. |
@samhouts On my dummy app it does load the shell. but then as soon as you select an item it freezes. |
Included is a screen recording from vscode using .net9 (it has the same issue as .net8) REC-20241018090328.mp4 |
Another comment yet again. Cant really share the entire app since it contains company data. screenrec.mp4 |
Having alot of fun here.. |
Android gc loop is "fixed" by going back to in the issue #25382 i linked my pages as i use them in my production app. |
Allright we have progress. <Color x:Key="Primary">#28aadc</Color>
<Color x:Key="PrimaryDarkText">White</Color>
<Color x:Key="FlyoutColor">LightBlue</Color>
<Style x:Key="BaseStyle" TargetType="Element">
<Setter Property="Shell.ForegroundColor" >
<Setter.Value>
<OnPlatform x:TypeArguments="Color">
<On Platform="iOS" Value="White"/>
<On Platform="Android" Value="Transparent"/>
</OnPlatform>
</Setter.Value>
</Setter>
<Setter Property="Shell.TitleColor" Value="White" />
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
<Setter Property="Shell.UnselectedColor" Value="Black" />
<Setter Property="Shell.FlyoutBackground" Value="{AppThemeBinding Light={StaticResource PrimaryBackground},Dark={StaticResource PrimaryDarkBackground}}"/>
</Style>
<Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" />
<Style Class="FlyoutItemLabelStyle" TargetType="Label">
<Setter Property="TextColor" Value="Black"></Setter>
</Style>
<Style Class="FlyoutItemLayoutStyle" TargetType="Layout" ApplyToDerivedTypes="True">
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="Transparent" />
<Setter TargetName="FlyoutItemLabel" Property="Label.TextColor" Value="{StaticResource Primary}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Selected">
<VisualState.Setters>
<Setter Property="Background" Value="{StaticResource FlyoutColor}" />
<Setter TargetName="FlyoutItemLabel" Property="Label.TextColor" Value="{StaticResource PrimaryDarkText}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style> Removing this style causes the app to no longer freeze when setting the app shell as the main page. |
Description
Im having a small issue with my Shell.
This used to work the way i have it right now. but since i installed .net 8.0.5 on my mac and the latest workload it stopped working.
In my function I set the mainpage like so
The delay is there for an earlier issue, if didnt stick it in there it would crash sometimes back in ios 16.something.
Now when it executes with XCode 15.2 on an iphone simulator for 17.0 it gets to the last line and then logs this in the console
What is odd is that my shell only has this in it at the moment (stripped everything away to see what was causing it)
If I change my mainpage code to just set a navigation page of Splashpage then it does work, but I need the shell navigation.
Using visual studio code on mac
Steps to Reproduce
No response
Link to public reproduction project repository
should throw the error on app launch
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: