Skip to content

[iOS][NavigationBar] MainCommand (Back button) not appearing when icon is set from style #1403

@Asfiroth

Description

@Asfiroth

Current behavior

MainCommand does not appear when setting the icon on a global style, no error is shown it just doesn't render. When removing it from the style, appears behaves as expected.

SideNote: This is using Native renderer

Expected behavior

Main Command should appear and navigte back when backstack is not empty even if the icon is set from style.

How to reproduce it (as minimally and precisely as possible)

  1. Create a new Uno Platform application with this features:
  2. Create an style for main command AppBarButton
  3. Set a global default style for NavigationBar control and set Style for MainCommand
  4. Run Application and navigate to second page
  5. back button doesn't appear (if icon is removed main command appears and works correctly)

Repro project:
NavBarTest.zip
Nuget Package:

Package Version(s):

Uno.Sdk 6.0.96
Uno.Toolkit.WinUI 7.0.2
Uno.Toolkit.Skia.WinUI 7.0.2

Installed Workloads:

Workload version: 9.0.203

Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
android                    35.0.61/9.0.100        SDK 9.0.300        
ios                        18.4.9288/9.0.100      SDK 9.0.300        
maccatalyst                18.4.9288/9.0.100      SDK 9.0.300        
macos                      15.4.9288/9.0.100      SDK 9.0.300        
maui                       9.0.14/9.0.100         SDK 9.0.300        
tvos                       18.4.9288/9.0.100      SDK 9.0.300        
wasm-tools                 9.0.4/9.0.100          SDK 9.0.300    

Affected platform(s):

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows

IDE:

  • Visual Studio 2022
  • Visual Studio 2019
  • Visual Studio Code
  • Visual Studio for Mac
  • Rider Windows
  • Rider macOS

Relevant plugins:

Anything else we need to know?

Friction: for some reason now I can't run the samples.Mobile projects on MacOS Jetbrains Rider

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions