Skip to content

Commit b710984

Browse files
committed
Add back playground
1 parent 2c66444 commit b710984

File tree

1 file changed

+2
-2
lines changed
  • ParseSwift.playground/Pages/11 - LiveQuery.xcplaygroundpage

1 file changed

+2
-2
lines changed

ParseSwift.playground/Pages/11 - LiveQuery.xcplaygroundpage/Contents.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct GameScore: ParseObject {
4444

4545
//: Create a query just as you normally would.
4646
var query = GameScore.query("score" > 9)
47-
/*
47+
4848
#if canImport(SwiftUI)
4949
//: To use subscriptions inside of SwiftUI
5050
struct ContentView: View {
@@ -100,7 +100,7 @@ struct ContentView: View {
100100

101101
PlaygroundPage.current.setLiveView(ContentView())
102102
#endif
103-
*/
103+
104104
//: This is how you subscribe to your created query using callbacks.
105105
let subscription = query.subscribeCallback!
106106

0 commit comments

Comments
 (0)