fixes iOS build
This commit is contained in:
parent
ab0fbc99c3
commit
91bc4a0c30
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue