From 91bc4a0c30b50206131f3a23c3262ce5f0609743 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 8 Jul 2020 22:04:26 +0800 Subject: [PATCH] fixes iOS build --- Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift b/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift index 76eff0e79..9bb3d531d 100644 --- a/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift +++ b/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift @@ -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 } } }