Skip to content

Commit

Permalink
ObservableObject fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Usbergo committed Feb 1, 2021
1 parent b722b5f commit 812b678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Store/store/Store.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ open class Store<M>: ReducibleStore, ObservableObject, Identifiable {
/// updated.
public var binding: BindingProxy<M>! = nil

/// Accessor to the wrapped immutable model.
public var readOnlyModel: M { modelStorage.model }

// See `AnyStore`.
public var middleware: [Middleware] = []
public private(set) var modelStorage: ModelStorageBase<M>
Expand Down

0 comments on commit 812b678

Please sign in to comment.