-
Notifications
You must be signed in to change notification settings - Fork 0
/
4D81B2D4-BF10-470D-924E-F1A34B031054.codesnippet
84 lines (64 loc) · 1.96 KB
/
4D81B2D4-BF10-470D-924E-F1A34B031054.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?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>tbvc</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>TopLevel</string>
</array>
<key>IDECodeSnippetContents</key>
<string>import Foundation
import UIKit
class <#View#>Controller: UIViewController {
// MARK: - Enums
// MARK: - Constants
let viewModel: <#View#>Model
// MARK: - IBOutlets
// MARK: - Weak Vars
// MARK: - Public Variables
// MARK: - Private Variables
// MARK: - Init
init(viewModel: <#View#>Model) {
self.viewModel = viewModel
super.init(nibName: "<#View#>", bundle: nil)
self.viewModel.delegate = self
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) is not supported")
}
// MARK: - View Life Cycle
override func viewDidLoad() {
super.viewDidLoad()
viewModel.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
viewModel.viewWillAppear()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
viewModel.viewDidAppear()
}
// MARK: - IBActions
// MARK: - Instance Methods
}
// MARK: - Extension: <#View#>ModelDelegate
extension <#View#>Controller: <#View#>ModelDelegate {
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>4D81B2D4-BF10-470D-924E-F1A34B031054</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetPlatformFamily</key>
<string>iphoneos</string>
<key>IDECodeSnippetTitle</key>
<string>Ticket Block View Controller</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>