Skip to content

Commit

Permalink
Frontend: workaround for iOS burger icon
Browse files Browse the repository at this point in the history
iOS version utilizes the title property of Flyout page
as a 'hamburger icon'. Therefore, a png file for iOS
version has been added.

Worksround for dotnet/maui#15258
  • Loading branch information
kubaflo committed May 25, 2023
1 parent 6c52eb6 commit bf3138c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Frontend/Frontend.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<Resize>True</Resize>
</BundleResource>
<BundleResource Include="Resources\AppIcon\appicon.svg" />
<BundleResource Include="Resources\Images\hamburger_icon.png" />
</ItemGroup>
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
<OutputType>WinExe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
NavigationPage.HasNavigationBar="False"
>
<FlyoutPage.Flyout>
<ContentPage Title="Menu">
<ContentPage Title="Menu" IconImageSource="hamburger_icon.png">
<StackLayout>
<Button Clicked="AdvancedModeClicked" Text="Advanced mode" />
<Button Clicked="AboutClicked" Text="About DG" />
Expand Down
Binary file added src/Frontend/Resources/Images/hamburger_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf3138c

Please sign in to comment.