-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathswift-urlsession-delegate.codesnippet
More file actions
31 lines (31 loc) · 1.04 KB
/
swift-urlsession-delegate.codesnippet
File metadata and controls
31 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>swift-urlsession-delegate</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>let session = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
let task = session.dataTask(with: <#request#>){ (data, response, error) in
<#code#>
}
task.resume()
</string>
<key>IDECodeSnippetIdentifier</key>
<string>B03099E0-1094-412E-BE86-5AC1BDB07315</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string>Swift HTTP Request With Delegate set</string>
<key>IDECodeSnippetTitle</key>
<string>Swift URLSession With Delegate</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>