-
Notifications
You must be signed in to change notification settings - Fork 0
/
47FFBA8F-F17F-4AB3-A389-02ECA6AF81D8.codesnippet
60 lines (52 loc) · 1.63 KB
/
47FFBA8F-F17F-4AB3-A389-02ECA6AF81D8.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?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>Create View Model Template</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>TopLevel</string>
</array>
<key>IDECodeSnippetContents</key>
<string>protocol <#ViewModel#>Inputs {
}
protocol <#ViewModel#>Outputs {
}
class <#ViewModel#> {
// MARK: - Public Properties
typealias Services = MainAppServicesType
// MARK: - Initialization
init(services: Services) {
self.services = services
}
// MARK: - Private Properties
private let services: Services
}
extension <#ViewModel#>: <#ViewModel#>Inputs {
}
extension <#ViewModel#>: <#ViewModel#>Outputs {
}
protocol <#ViewModel#>Type {
var inputs: <#ViewModel#>Inputs { get }
var outputs: <#ViewModel#>Outputs { get }
}
extension <#ViewModel#>: <#ViewModel#>Type {
var inputs: <#ViewModel#>Inputs { self }
var outputs: <#ViewModel#>Outputs { self }
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>47FFBA8F-F17F-4AB3-A389-02ECA6AF81D8</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string>Generates code standard for a view model</string>
<key>IDECodeSnippetTitle</key>
<string>Create View Model Template</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>