update folder structure
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
<Compile Include="Renderers\RoundImageRenderer.cs" />
|
||||
<Compile Include="GlobalSuppressions.cs" />
|
||||
<Compile Include="Services\FileStore.cs" />
|
||||
<Compile Include="Renderers\AppShellRenderer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InterfaceDefinition Include="Resources\LaunchScreen.storyboard" />
|
||||
@@ -149,5 +150,6 @@
|
||||
<BundleResource Include="Resources\fa-light-300.ttf" />
|
||||
<BundleResource Include="Resources\fa-regular-400.ttf" />
|
||||
<BundleResource Include="Resources\fa-solid-900.ttf" />
|
||||
<BundleResource Include="Resources\userprofile.jpg" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -39,8 +39,6 @@ namespace Pixiview.iOS.Renderers
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
public override bool PrefersHomeIndicatorAutoHidden => Screen.GetHomeIndicatorAutoHidden(Element);
|
||||
|
||||
public override void ViewDidAppear(bool animated)
|
||||
{
|
||||
base.ViewDidAppear(animated);
|
||||
|
26
Pixiview.iOS/Renderers/AppShellRenderer.cs
Normal file
26
Pixiview.iOS/Renderers/AppShellRenderer.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Pixiview.iOS.Renderers;
|
||||
using Pixiview.Utils;
|
||||
using UIKit;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Platform.iOS;
|
||||
|
||||
[assembly: ExportRenderer(typeof(Shell), typeof(AppShellRenderer))]
|
||||
namespace Pixiview.iOS.Renderers
|
||||
{
|
||||
public class AppShellRenderer : ShellRenderer
|
||||
{
|
||||
public override bool PrefersHomeIndicatorAutoHidden => Screen.GetHomeIndicatorAutoHidden(Element);
|
||||
|
||||
protected override IShellSectionRenderer CreateShellSectionRenderer(ShellSection shellSection)
|
||||
{
|
||||
var renderer = base.CreateShellSectionRenderer(shellSection);
|
||||
if (renderer is ShellSectionRenderer sr && Element is AppShell shell)
|
||||
{
|
||||
shell.SetNavigationBarHeight(
|
||||
sr.NavigationBar.Frame.Height,
|
||||
UIApplication.SharedApplication.StatusBarFrame.Height);
|
||||
}
|
||||
return renderer;
|
||||
}
|
||||
}
|
||||
}
|
BIN
Pixiview.iOS/Resources/userprofile.jpg
Normal file
BIN
Pixiview.iOS/Resources/userprofile.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Reference in New Issue
Block a user