Xcode 11 beta 6

This commit is contained in:
John Holdsworth
2019-08-20 18:54:37 +02:00
parent a36ff1b7ca
commit 7de7e1e47b
40 changed files with 114 additions and 115 deletions

View File

@@ -10,7 +10,7 @@ import SwiftUI
struct RepositoryListView : View {
@ObjectBinding
@ObservedObject
private(set) var viewModel: RepositoryListViewModel
var body: some View {
@@ -24,15 +24,15 @@ struct RepositoryListView : View {
onCommit: { self.viewModel.search() })
.frame(height: 40)
.padding(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 8))
.border(Color.gray, cornerRadius: 8)
.padding(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
.background(RoundedRectangle(cornerRadius: 8).strokeBorder(Color.gray, lineWidth: 2))
Button(action: { self.viewModel.search() }) {
Text("Search")
}
.frame(height: 40)
.padding(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 8))
.border(Color.blue, cornerRadius: 8)
.background(RoundedRectangle(cornerRadius: 8).strokeBorder(Color.blue, lineWidth: 2))
.padding(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 16))
}