Minimum changes for Xcode 11 beta 5

This commit is contained in:
John Holdsworth
2019-07-31 14:11:25 +01:00
parent 7af0a711da
commit a36ff1b7ca
48 changed files with 209 additions and 114 deletions

View File

@@ -20,8 +20,7 @@ struct RepositoryListView : View {
VStack {
HStack {
TextField($viewModel.text,
placeholder: Text("Search reposipories..."),
TextField("Search repositories...", text: $viewModel.text,
onCommit: { self.viewModel.search() })
.frame(height: 40)
.padding(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 8))
@@ -43,7 +42,7 @@ struct RepositoryListView : View {
.lineLimit(nil)
.multilineTextAlignment(.center)
ForEach(viewModel.repositories.identified(by: \.id)) { repository in
ForEach(viewModel.repositories, id: \.id) { repository in
NavigationLink(destination:
WebView(url: repository.htmlUrl)