forked from burczyk/XcodeSwiftSnippets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
swift-uialertcontroller.codesnippet
31 lines (30 loc) · 1.1 KB
/
swift-uialertcontroller.codesnippet
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>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string>let alert = UIAlertController(title: <#title#>, message: <#message#>, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "", style: .default, handler: { (action) in
alert.dismiss(animated: <#Bool#>, completion: {
<#code#>
})
}))
presentViewController(alert, animated: true, completion: nil)</string>
<key>IDECodeSnippetIdentifier</key>
<string>3141D76F-5123-4B60-8D39-8AD76BF37BF4</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string>Swift shortcut for UIAlertController</string>
<key>IDECodeSnippetTitle</key>
<string>Swift UIAlertController</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>