-
Notifications
You must be signed in to change notification settings - Fork 11
/
ViewController.stf
41 lines (30 loc) · 1020 Bytes
/
ViewController.stf
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
//
// {{ resource.name }}ViewController.swift
//
import UIKit
class {{ resource.name }}ViewController: UIViewController {
{% if coordinator %}
weak var coordinator: {{ resource.name }}Coordinator?
{% endif %}
convenience init() {
self.init(nibName: nil, bundle: nil)
}
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
commonInit()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func commonInit() {
title = NSLocalizedString("{{ resource.name }}", comment: "{{ resource.name }} Title (Singular)")
}
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.navigationBar.prefersLargeTitles = true
view.backgroundColor = UIColor.white
setupConstraints()
}
func setupConstraints() {
}
}