How to present an avatar/profile icon in large titled navigation bar

Hi all,

How can I implement this kind of UI in many build-in apps (AppStore, Music, Health etc.)?

Here are some possible solutions but non of them are perfect. There are two reasons

  1. The added profile is still displayed evenif I've entered a new view

2. I've accessd a private method called "_UINavigationBarLargeTitleView", which may get my app blocked by AppStore.


Links:

https://stackoverflow.com/questions/67202400/how-to-show-profile-icon-next-to-large-navigation-bar-title-in-swiftui

https://stackoverflow.com/questions/47062176/image-for-navigation-bar-with-large-title-ios-11

Is there any better way to achieve this?

How to present an avatar/profile icon in large titled navigation bar
 
 
Q