Open xDaijobu opened 1 year ago
It only happens on the iOS simulator and device ( 14 Pro Max & 14 Pro ). Android, it's working fine ~
Just to be clear: it doesn't happen on iOS if it doesn't have the Dynamic Island? So it works fine on an iOS non-Pro?
Just to be clear: it doesn't happen on iOS if it doesn't have the Dynamic Island? So it works fine on an iOS non-Pro?
yeahhh
hmm, i just realised somethingg
there is a another bug @@
I have the same issue, can you please provide eta on fix as this has huge impact on our production applications
Affecting our production app as well and need a fix for this. Would love to see this resolved.
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
public static void SetDefaultPageSettings(Xamarin.Forms.Page page)
{
page.On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
if you use this does it solve the issue. as i had similar issue.
@samuelGrahame your workaround not working. I set for 'SetUseSafeArea' for TabbedPage and every Page into tabbed.
@jfversluis @jsuarezruiz How i can fix this issue?
Thanks!
Not sure then, just commenting on this as I had a similar issue.
Hi guys, i have found a new workaround, thanks the following comment -> https://github.com/xamarin/Xamarin.Forms/issues/14484#issuecomment-900062339
So follow these steps:
into code behind ->
public partial class MyFlyoutPage : FlyoutPage
{
public MyFlyoutPage()
{
InitializeComponent();
SetDefaultPageSettings(this)
}
}
public partial class MyPageIntoTabbedBar : ContentPage
{
public MyPageIntoTabbedBar()
{
InitializeComponent();
SetDefaultPageSettings(this)
}
}
public class iOSDynamicIslandFixTabbedPage : TabbedPage
public iOSDynamicIslandFixTabbedPage()
{
InitializeComponent();
SetDefaultPageSettings(this)
}
[assembly: ExportRenderer(typeof(iOSDynamicIslandFixTabbedPage), typeof(iOSDynamicIslandFixTabbedPageCustomRenderer))]
namespace <namespace>.iOS.Views
{
public class iOSDynamicIslandFixTabbedPageCustomRenderer : TabbedRenderer
{
public override void ViewDidAppear(bool animated)
{
base.ViewDidAppear(animated);
if (View == null)
return;
var currentFrame = View.Frame;
View.Frame = currentFrame.Inset(0, 1);
View.Frame = currentFrame;
}
}
}
Enjoy! ;)
@giuseppenovielli I've spent 6 hours trying to find a workaround, I owe you a beer!
You've saved me with this workaround! Thanks!
Description
TabbedPage inside FlyoutPage "goes under" Home Bar on iOS
Steps to Reproduce
https://user-images.githubusercontent.com/22674537/203490875-3e7192d0-2fd4-4426-b074-83009d0816ae.mov
Expected Behavior
Actual Behavior
Basic Information
Screenshots
Reproduction Link
https://github.com/xDaijobu/BugTabbedPageiOS
Workaround