From 9836fb781c8a9c985d01f518d426e80e32358a93 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 16 Jul 2020 10:53:54 -0500 Subject: [PATCH] Rename variable to make its intent clear --- Multiplatform/Shared/Timeline/TimelineView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Multiplatform/Shared/Timeline/TimelineView.swift b/Multiplatform/Shared/Timeline/TimelineView.swift index 844db5458..73182412a 100644 --- a/Multiplatform/Shared/Timeline/TimelineView.swift +++ b/Multiplatform/Shared/Timeline/TimelineView.swift @@ -43,8 +43,8 @@ struct TimelineView: View { TimelineItemView(timelineItem: timelineItem) } } - .onChange(of: timelineModel.selectedArticleIDs) { value in - navigate = !timelineModel.selectedArticleIDs.isEmpty + .onChange(of: timelineModel.selectedArticleIDs) { ids in + navigate = !ids.isEmpty } } .navigationTitle(Text(verbatim: timelineModel.nameForDisplay))