fixes iOS build

This commit is contained in:
Stuart Breckenridge 2020-07-08 22:04:26 +08:00
parent ab0fbc99c3
commit 91bc4a0c30
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
1 changed files with 2 additions and 0 deletions

View File

@ -25,12 +25,14 @@ class SidebarSelectionModel: ObservableObject {
@Published var selectedSidebarItem: FeedIdentifier? = .none {
willSet {
#if os(macOS)
if newValue != nil {
items.insert(newValue!)
} else {
selectedSidebarItems = items
items.removeAll()
}
#endif
}
}
}