Sync & Network Status
Notify a user of the sync status of the platform and react to changes in network availability
Overview
Network Status
public enum CloneableConnectionState {
case connecting
case connected
case disconnected
}
// example usage
struct CloneableStatus: View {
@EnvironmentObject var cloneable: CloneablePlatform
var body: some View {
if cloneable.networkStatus == .disconnected {
// show disconnected
} else {
// show connected
}
}
}Sync Status
Monitor File Sync Status
Get total number of files downloaded
Last updated

