Skip to content

Commit da4619b

Browse files
Adds hasLoaded check for viewState
1 parent 53777c0 commit da4619b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Sources/LoadableView/ViewState.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ public extension ViewState {
1515
case .notLoaded: return nil
1616
}
1717
}
18-
}
1918

19+
var hasLoaded: Bool {
20+
loaded != nil
21+
}
22+
}
2023

2124
public enum Overlay {
2225
case none

0 commit comments

Comments
 (0)