1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

iOS15 Navigation Bar TitleのFont / Colorの設定方法

Posted at

iOS15でNavigation Barの背景色が透明に変わましたが、付随してタイトルの文字色の設定も少し手こずったのでメモしておきます。

該当箇所

スクリーンショット 2021-10-30 13.15.43.png

手順

  • Navigation ControllerのBarを選択
    スクリーンショット 2021-10-30 13.33.31.png

  • Appearances > Standard, Scroll Edge
    スクリーンショット 2021-10-30 13.25.39.png

  • 下のTable Viewが一番上に来ているとき、Scroll Edge Text Attributesが適用

  • それ以外のとき(少しでもスクロールしているとき)は、Standard Text Attributesが適用

  • TitleをInheritedではなく、Customにして、Title Font / Colorをそれぞれに設定する

スクリーンショット 2021-10-30 13.20.55.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?