Skip to content

Commit

Permalink
Binding proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Usbergo committed Jun 26, 2020
1 parent d4ac537 commit 96ffe9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/alexdrone/Store",
"state": {
"branch": "master",
"revision": "9349c68b6e29d8f13a9ffb209cb91a9b1903ae37",
"revision": "d4ac5372304bcc5e213de441601f7187662e28ec",
"version": null
}
}
Expand Down
8 changes: 7 additions & 1 deletion Demo/store_hacker_news/store_hacker_news/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,20 @@ struct ContentView: View {

private var noStoriesBody: some View {
VStack {
Spacer()
Text("No stories loaded.").font(.body)
Button(action: store.fetchTopStories) {
Image(systemName: "tray.and.arrow.down")
}
Toggle("(Test binding flag)", isOn: $store.bindingProxy.flag)
Spacer()
bindingProxyTest
}
}

private var bindingProxyTest: some View {
Toggle("", isOn: $store.bindingProxy.flag).padding(/*@START_MENU_TOKEN@*/.all/*@END_MENU_TOKEN@*/, /*@START_MENU_TOKEN@*/10/*@END_MENU_TOKEN@*/)
}

private var storiesBody: some View {
List {
ForEach(store.model.items.value ?? []) {
Expand Down

0 comments on commit 96ffe9d

Please sign in to comment.