This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Welcome.swift | |
// Playground | |
// | |
// Created by Nav Singh on 8/20/20. | |
// | |
import SwiftUI | |
struct Welcome: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct Screen: View { | |
var body: some View { | |
VStack (spacing: 24) { | |
HStack { | |
Image(systemName: "line.horizontal.3").padding().background(Color.secondary.opacity(0.2)).clipShape(Circle()) | |
Spacer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Apple.swift | |
// Playground | |
// | |
// Created by Navdeep Singh on 7/14/20. | |
// | |
import SwiftUI | |
struct Apple: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct Screen: View { | |
var body: some View { | |
VStack { | |
HStack { | |
Spacer() | |
Text("Here’s to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes… the ones who see things differently — they’re not fond of rules…").padding().background(Color(UIColor.systemBlue)).clipShape(BubbleShape(myMessage: true)).foregroundColor(.white) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct Screen: View { | |
var body: some View { | |
VStack { | |
ChatTopView() | |
ConversationView() | |
ChatBottomBar().padding(.bottom, 10) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct Screen: View { | |
var body: some View { | |
NavigationView { | |
VStack { | |
ScrollView (.vertical, showsIndicators: false) { | |
SearchBar() | |
Pins() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network.shared.apollo.fetch(query: ListPersonQuery) { result in | |
switch result { | |
case .success(let graphQLResult): | |
if let items = graphQLResult.data?.listPerson?.items { | |
for conf in items { | |
if let curPerson = conf { | |
//Do whatever here with your Graphql Result | |
print(curPerson) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network.shared.apollo.perform(mutation: CreatePersonMutation(input: personInput)) { result in | |
switch result { | |
case .success(let graphQLResult): | |
print(graphQLResult) | |
case .failure(let error): | |
print("Failure! Error: \(error)") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LandingPage.swift | |
// Swiftlycode | |
// | |
// Created by Navdeep Singh on 5/19/20. | |
// Copyright © 2020 Navdeep Singh. All rights reserved. | |
// | |
import SwiftUI |