Difference between UINavigationBar and UIToolbar render process

This is the main question, but I realized that both of these bars have a different rendering process. Why is this?

If I use an image specifically designed for UIToolbar elements and try to use it in UINavigationBar elements, it does not display in the same way. It doesn't seem to display at all in the UINavigationBar at all.

So, I need to create another image for both of these types of bars. Is this a bug or an alleged design? Am I missing something? Is there any special setting so that both stripes display their objects the same way?

+3
source share

Source: https://habr.com/ru/post/1755053/