update app structure to Shell
This commit is contained in:
@@ -75,7 +75,6 @@
|
||||
<Compile Include="Renderers\CardViewRenderer.cs" />
|
||||
<Compile Include="Renderers\RoundImageRenderer.cs" />
|
||||
<Compile Include="GlobalSuppressions.cs" />
|
||||
<Compile Include="Renderers\AdaptedNavigationPageRenderer.cs" />
|
||||
<Compile Include="Services\FileStore.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@@ -1,26 +0,0 @@
|
||||
using Pixiview.iOS.Renderers;
|
||||
using Pixiview.UI;
|
||||
using UIKit;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Platform.iOS;
|
||||
|
||||
[assembly: ExportRenderer(typeof(AdaptedNavigationPage), typeof(AdaptedNavigationPageRenderer))]
|
||||
namespace Pixiview.iOS.Renderers
|
||||
{
|
||||
public class AdaptedNavigationPageRenderer : NavigationRenderer
|
||||
{
|
||||
public override void WillMoveToParentViewController(UIViewController parent)
|
||||
{
|
||||
if (Element is AdaptedNavigationPage navigation)
|
||||
{
|
||||
NavigationBar.Translucent = true;
|
||||
|
||||
var barHeight = NavigationBar.Frame.Height;
|
||||
var statusHeight = UIApplication.SharedApplication.StatusBarFrame.Height;
|
||||
navigation.SetNavigationBarHeight(barHeight, statusHeight);
|
||||
}
|
||||
|
||||
base.WillMoveToParentViewController(parent);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user