Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [iOS] Navigation bar title image position is affected by toolbar and back buttons #15680

Open
bondarenkod opened this issue Feb 4, 2023 · 0 comments
Labels
a/navigation s/unverified New report that has yet to be verified t/bug 🐛

Comments

@bondarenkod
Copy link
Contributor

bondarenkod commented Feb 4, 2023

Description

Title image is not centered when navigation bar contains back button or/and toolbar buttons.
I've fixed this issue, the nuget package is attached to this issue, feel free to use it or compile from the linked as repro sources.

Steps to Reproduce

  1. iOS 16+ (16.2?)
  2. NavigationPage.SetTitleIconImageSource(this, "icon_feed.png");
  3. this.ToolbarItems.Add(new ToolbarItem() { Text = "one" }); this.ToolbarItems.Add(new ToolbarItem() { Text = "two" });

Expected Behavior

fxd-1
fxd-2
fxd-3

Actual Behavior

issue-1
issue-2
issue-3
issue-4

Basic Information

  • Version with issue: latest XF packages
  • Last known good version: -
  • NuGet Packages: latest XF packages
  • Affected Devices: ios16+ or 16.2

Reproduction Link

Check this commit bondarenkod/repro-xf-titleimage-not-centered@e8b13d3
This is XF project adopted to use with VS2022 for Windows and the latest VS2022 for Mac. You need to run the .Xamarin.Forms.vs2022.iOS.slnf file and deploy the titleview.iOS project.

Workaround

Check these changes bondarenkod/repro-xf-titleimage-not-centered@e8b13d3

Compiled nuget based on the repro:
Xamarin.Forms.5.0.0.2548.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/navigation s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants
@bondarenkod @jsuarezruiz and others