1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30
yattee/Shared/Player/Controls/OSD/NetworkState.swift
2022-12-05 10:13:19 +01:00

20 lines
450 B
Swift

import SwiftUI
struct NetworkState: View {
@ObservedObject private var model = NetworkStateModel.shared
var body: some View {
Buffering(state: model.fullStateText)
.opacity(model.osdVisible ? 1 : 0)
}
}
struct NetworkState_Previews: PreviewProvider {
static var previews: some View {
let networkState = NetworkStateModel()
networkState.bufferingState = 30
return NetworkState()
}
}