Skip to content

Commit

Permalink
feat(datastore): Make loadedState public in List+Model
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash committed Oct 13, 2023
1 parent ec5a64d commit 629b91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Amplify/Categories/DataStore/Model/Lazy/List+Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public class List<ModelType: Model>: Collection, Codable, ExpressibleByArrayLite
public typealias Element = ModelType

/// Represents the data state of the `List`.
enum LoadedState {
public enum LoadedState {
case notLoaded
case loaded([Element])
}

/// The current state of lazily loaded list
var loadedState: LoadedState
public internal(set) var loadedState: LoadedState

/// The provider for fulfilling list behaviors
let listProvider: AnyModelListProvider<Element>
Expand Down

0 comments on commit 629b91f

Please sign in to comment.