1
1

はじめに

iOS17からbadgeProminenceというバッジの見た目を変更するメソッドが追加されていたので使ってみました

実装

standard

List(0..<10) { index in
    Text(index.description)
        .badge(index)
}
.badgeProminence(.standard)

decreased

List(0..<10) { index in
    Text(index.description)
        .badge(index)
}
.badgeProminence(.decreased)

increased

List(0..<10) { index in
    Text(index.description)
        .badge(index)
}
.badgeProminence(.increased)

おわり

standardは使うViewによっても変わるみたいです

ドキュメント

1
1
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
1