Skip to content

Commit 598eee7

Browse files
hyperspacemarkmbrandonw
authored andcommitted
Update example to set badge to the unread count (#1391)
1 parent 7f948af commit 598eee7

File tree

1 file changed

+1
-1
lines changed
  • Sources/ComposableArchitecture/Documentation.docc/Articles

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/Performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ WithViewStore(
150150
store: self.store.scope(state: \.activity, action: AppAction.activity)
151151
)
152152
.tag(AppState.Tab.activity)
153-
.badge("\(viewStore.state)")
153+
.badge("\(viewStore.unreadActivityCount)")
154154

155155
// ...
156156
}

0 commit comments

Comments
 (0)