Skip to content

Commit 92f8afd

Browse files
palpatimlarryonoff
authored andcommitted
Merge Apollo PR: "Update for compatibility with Swift5" (awslabs#167)
apollographql/apollo-ios#427
1 parent 0e3e333 commit 92f8afd

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

AWSAppSyncClient/Apollo/Sources/Apollo/Collections.swift

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
extension Dictionary {
2-
subscript(key: Key, withDefault value: @autoclosure () -> Value) -> Value {
3-
mutating get {
4-
if self[key] == nil {
5-
self[key] = value()
6-
}
7-
return self[key]!
8-
}
9-
set {
10-
self[key] = newValue
11-
}
12-
}
13-
}
14-
151
public extension Dictionary {
162
static func += (lhs: inout Dictionary, rhs: Dictionary) {
173
#if swift(>=3.2)
@@ -58,7 +44,7 @@ extension GroupedSequence: Sequence {
5844
struct GroupedSequenceIterator<Key: Equatable, Value>: IteratorProtocol {
5945
private var base: GroupedSequence<Key, Value>
6046

61-
private var keyIterator: EnumeratedIterator<IndexingIterator<Array<Key>>>
47+
private var keyIterator: EnumeratedSequence<Array<Key>>.Iterator
6248

6349
init(base: GroupedSequence<Key, Value>) {
6450
self.base = base

0 commit comments

Comments
 (0)