-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswift-alert-controller.codesnippet
More file actions
29 lines (29 loc) · 1.09 KB
/
swift-alert-controller.codesnippet
File metadata and controls
29 lines (29 loc) · 1.09 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
<?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_alert</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>ClassImplementation</string>
</array>
<key>IDECodeSnippetContents</key>
<string>let alert = UIAlertController(title: "<#title#>", message: "<#message#>", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "<#T##String?#>", style: .cancel, handler: nil))
present(alert, animated: true, completion: nil)
</string>
<key>IDECodeSnippetIdentifier</key>
<string>CF8C7EB8-D4F2-4BA4-BD98-26CE75A7772E</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string>Adds code for showing system alert</string>
<key>IDECodeSnippetTitle</key>
<string>Swift alert controller snippet</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>