fixes iOS build
This commit is contained in:
parent
ab0fbc99c3
commit
91bc4a0c30
|
@ -25,12 +25,14 @@ class SidebarSelectionModel: ObservableObject {
|
||||||
|
|
||||||
@Published var selectedSidebarItem: FeedIdentifier? = .none {
|
@Published var selectedSidebarItem: FeedIdentifier? = .none {
|
||||||
willSet {
|
willSet {
|
||||||
|
#if os(macOS)
|
||||||
if newValue != nil {
|
if newValue != nil {
|
||||||
items.insert(newValue!)
|
items.insert(newValue!)
|
||||||
} else {
|
} else {
|
||||||
selectedSidebarItems = items
|
selectedSidebarItems = items
|
||||||
items.removeAll()
|
items.removeAll()
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue