diff --git a/swift/apple/FirezoneKit/Sources/FirezoneKit/Stores/Store.swift b/swift/apple/FirezoneKit/Sources/FirezoneKit/Stores/Store.swift index e1ef2796c..a431edb6c 100644 --- a/swift/apple/FirezoneKit/Sources/FirezoneKit/Stores/Store.swift +++ b/swift/apple/FirezoneKit/Sources/FirezoneKit/Stores/Store.swift @@ -64,6 +64,13 @@ public final class Store: ObservableObject { } } + // Forward favourites changes to Store's objectWillChange so SwiftUI views observing Store get notified + self.favorites.objectWillChange + .sink { [weak self] _ in + self?.objectWillChange.send() + } + .store(in: &cancellables) + // We monitor for any configuration changes and tell the tunnel service about them self.configuration.objectWillChange .receive(on: DispatchQueue.main)