Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NavigationBar 目前的版本对居中标题文案较友好,但对于标题想居左的 APP 则有个问题:
如下图,rightView 有内容时,标题左侧也会留出多余的相等空间
下图为本次 pull request 改造后的效果,居左的标题左侧不再有多余空间
改造后,「标题左右留出相等空间」的逻辑,现在仅在「标题居中」的情况下生效。