mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-24 18:31:27 +01:00
Minimum changes for Xcode 11 beta 5
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user