Update for changes in Beta 3 of Xcode 12

This commit is contained in:
Maurice Parker 2020-07-22 17:55:15 -05:00
parent 48c721a468
commit f9cd15970f
2 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ private extension SidebarModel {
$selectedFeedIdentifiers.map { [weak self] feedIDs in
feedIDs.compactMap { self?.findFeed($0) }
}
.assign(to: $selectedFeeds)
.assign(to: &$selectedFeeds)
$selectedFeedIdentifier.compactMap { [weak self] feedID in
if let feedID = feedID, let feed = self?.findFeed(feedID) {
@ -156,7 +156,7 @@ private extension SidebarModel {
return nil
}
}
.assign(to: $selectedFeeds)
.assign(to: &$selectedFeeds)
}
func subscribeToRebuildSidebarItemsEvents() {

View File

@ -147,7 +147,7 @@ class TimelineModel: ObservableObject, UndoableCommandRunner {
$selectedArticleIDs.map { [weak self] articleIDs in
return articleIDs.compactMap { self?.idToArticleDictionary[$0] }
}
.assign(to: $selectedArticles)
.assign(to: &$selectedArticles)
$selectedArticleID.compactMap { [weak self] articleID in
if let articleID = articleID, let article = self?.idToArticleDictionary[articleID] {
@ -156,7 +156,7 @@ class TimelineModel: ObservableObject, UndoableCommandRunner {
return nil
}
}
.assign(to: $selectedArticles)
.assign(to: &$selectedArticles)
// Assign the selected timeline items
$selectedArticles.compactMap { [weak self] selectedArticles in
@ -166,7 +166,7 @@ class TimelineModel: ObservableObject, UndoableCommandRunner {
}
return nil
}
}.assign(to: $selectedTimelineItems)
}.assign(to: &$selectedTimelineItems)
// Automatically mark a selected record as read
$selectedArticles