Fix tvOS build
This commit is contained in:
parent
039e469ebb
commit
86cd963d4b
|
@ -11,7 +11,7 @@ import SwiftUI
|
|||
|
||||
struct ServerDetailView: View {
|
||||
|
||||
@ObservedObject var viewModel = ServerDetailViewModel()
|
||||
@ObservedObject var viewModel: ServerDetailViewModel
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
|
@ -44,19 +44,6 @@ struct ServerDetailView: View {
|
|||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
|
||||
Button(action: {
|
||||
viewModel.refreshServerLibrary()
|
||||
}, label: {
|
||||
HStack {
|
||||
Text("Refresh Library")
|
||||
.font(.callout)
|
||||
Spacer()
|
||||
if viewModel.isLoading {
|
||||
ProgressView()
|
||||
}
|
||||
}
|
||||
}).disabled(viewModel.isLoading)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ struct ServerListView: View {
|
|||
.font(.title2)
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Text(server.uri)
|
||||
Text(server.currentURI)
|
||||
.font(.footnote)
|
||||
.disabled(true)
|
||||
.foregroundColor(.secondary)
|
||||
|
|
Loading…
Reference in New Issue