Skip to content

Commit 62af197

Browse files
author
Alan Westbrook
committed
very slight nomenclature improvements
1 parent 7840d7e commit 62af197

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Orangered-Swift/LoginViewController.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ class LoginViewController: NSViewController {
3838

3939
override func loadView() {
4040
// Don't call into super, as we don't want it to try to load from a nib
41-
let vev = NSVisualEffectView()
42-
view = vev
43-
41+
view = NSVisualEffectView()
4442
view.translatesAutoresizingMaskIntoConstraints = false
4543
}
4644

4745
private func setup() {
4846
view.translatesAutoresizingMaskIntoConstraints = false
49-
for sub in [nameLabel, nameField, passwordLabel, passwordField, loginButton] { add(sub: sub) }
47+
for subview in [nameLabel, nameField, passwordLabel, passwordField, loginButton] { add(subview) }
5048

5149
func setupLabel(label:NSTextField, text:String) {
5250
label.stringValue = text
@@ -102,7 +100,7 @@ class LoginViewController: NSViewController {
102100
])
103101
}
104102

105-
private func add(sub:NSView) {
103+
private func add(_ sub:NSView) {
106104
sub.translatesAutoresizingMaskIntoConstraints = false
107105
view.addSubview(sub)
108106
}

Orangered.xcodeproj/xcshareddata/xcschemes/Orangered.xcscheme

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@
6767
value = ""
6868
isEnabled = "YES">
6969
</AdditionalOption>
70-
<AdditionalOption
71-
key = "PrefersMallocStackLoggingLite"
72-
value = ""
73-
isEnabled = "YES">
74-
</AdditionalOption>
7570
<AdditionalOption
7671
key = "MallocScribble"
7772
value = ""

0 commit comments

Comments
 (0)