GraphQL
July 16, 2020
WWDC Highlights
- Kilian: SwiftUI Updates und SwiftPM Resource Support
- Bilal: Car Keys
- Mathías:
View.isPlaceholder(true)
und Metal Shaders Graph
GraphQL
Experiment: GraphQL vs. REST
Scenario | Δ Bytes | Δ RTT |
---|---|---|
Worst-Case | +80% | +18% |
Average-Case | -16% | -42% |
-
Mattias Cederlund. Performance of frameworks for declarative data fetching : An evaluation of falcor and relay+graphql, 2016.
// Define a Cell
struct CharacterCell: View {
// Use the GraphQL Property Wrapper
@GraphQL(StarWars.Person.name)
var name: String?
@GraphQL(StarWars.Person.homeworld.name)
var home: String?
var body: some View {
HStack {
name.map { Text($0).bold() }
Spacer()
home.map { Text($0) }
}
}
}
Picks
- Mathías: a2/swift-shortcuts
- Lösung zu TupleView problem: AssociatedTypeRequirementsKit
- Bilal: nerdsupremacist/Graphaello
- Kilian: krzysztofzablocki/Difference