|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+import Cocoa
|
|
|
2
|
+
|
|
|
3
|
+// MARK: - Root
|
|
|
4
|
+
|
|
|
5
|
+final class SettingsView: NSView {
|
|
|
6
|
+ init() {
|
|
|
7
|
+ super.init(frame: .zero)
|
|
|
8
|
+ wantsLayer = true
|
|
|
9
|
+ layer?.backgroundColor = AppTheme.background.cgColor
|
|
|
10
|
+ translatesAutoresizingMaskIntoConstraints = false
|
|
|
11
|
+ setup()
|
|
|
12
|
+ }
|
|
|
13
|
+
|
|
|
14
|
+ @available(*, unavailable)
|
|
|
15
|
+ required init?(coder: NSCoder) { nil }
|
|
|
16
|
+
|
|
|
17
|
+ private func setup() {
|
|
|
18
|
+ let scrollView = NSScrollView()
|
|
|
19
|
+ scrollView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
20
|
+ scrollView.hasVerticalScroller = true
|
|
|
21
|
+ scrollView.autohidesScrollers = true
|
|
|
22
|
+ scrollView.drawsBackground = false
|
|
|
23
|
+ scrollView.borderType = .noBorder
|
|
|
24
|
+
|
|
|
25
|
+ let document = FlippedSettingsDocumentView()
|
|
|
26
|
+ document.translatesAutoresizingMaskIntoConstraints = false
|
|
|
27
|
+
|
|
|
28
|
+ let panel = SettingsPanelView()
|
|
|
29
|
+ panel.translatesAutoresizingMaskIntoConstraints = false
|
|
|
30
|
+
|
|
|
31
|
+ let stack = NSStackView()
|
|
|
32
|
+ stack.orientation = .vertical
|
|
|
33
|
+ stack.alignment = .leading
|
|
|
34
|
+ stack.spacing = 28
|
|
|
35
|
+ stack.translatesAutoresizingMaskIntoConstraints = false
|
|
|
36
|
+
|
|
|
37
|
+ let appSection = makeSection(title: "App", card: makeAppCard())
|
|
|
38
|
+ let aboutSection = makeSection(title: "About", card: makeAboutCard())
|
|
|
39
|
+ stack.addArrangedSubview(appSection)
|
|
|
40
|
+ stack.addArrangedSubview(aboutSection)
|
|
|
41
|
+
|
|
|
42
|
+ [appSection, aboutSection].forEach { section in
|
|
|
43
|
+ section.widthAnchor.constraint(equalTo: stack.widthAnchor).isActive = true
|
|
|
44
|
+ }
|
|
|
45
|
+
|
|
|
46
|
+ panel.addSubview(stack)
|
|
|
47
|
+ document.addSubview(panel)
|
|
|
48
|
+ scrollView.documentView = document
|
|
|
49
|
+ addSubview(scrollView)
|
|
|
50
|
+
|
|
|
51
|
+ let guide = scrollView.contentView
|
|
|
52
|
+ NSLayoutConstraint.activate([
|
|
|
53
|
+ scrollView.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
|
54
|
+ scrollView.trailingAnchor.constraint(equalTo: trailingAnchor),
|
|
|
55
|
+ scrollView.topAnchor.constraint(equalTo: topAnchor),
|
|
|
56
|
+ scrollView.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
|
57
|
+
|
|
|
58
|
+ document.topAnchor.constraint(equalTo: guide.topAnchor),
|
|
|
59
|
+ document.leadingAnchor.constraint(equalTo: guide.leadingAnchor),
|
|
|
60
|
+ document.trailingAnchor.constraint(equalTo: guide.trailingAnchor),
|
|
|
61
|
+ document.widthAnchor.constraint(equalTo: guide.widthAnchor),
|
|
|
62
|
+
|
|
|
63
|
+ panel.topAnchor.constraint(equalTo: document.topAnchor, constant: 8),
|
|
|
64
|
+ panel.leadingAnchor.constraint(equalTo: document.leadingAnchor, constant: 24),
|
|
|
65
|
+ panel.trailingAnchor.constraint(equalTo: document.trailingAnchor, constant: -24),
|
|
|
66
|
+ panel.bottomAnchor.constraint(equalTo: document.bottomAnchor, constant: -32),
|
|
|
67
|
+ panel.widthAnchor.constraint(equalTo: document.widthAnchor, constant: -48),
|
|
|
68
|
+
|
|
|
69
|
+ stack.leadingAnchor.constraint(equalTo: panel.leadingAnchor, constant: 28),
|
|
|
70
|
+ stack.trailingAnchor.constraint(equalTo: panel.trailingAnchor, constant: -28),
|
|
|
71
|
+ stack.topAnchor.constraint(equalTo: panel.topAnchor, constant: 28),
|
|
|
72
|
+ stack.bottomAnchor.constraint(equalTo: panel.bottomAnchor, constant: -28),
|
|
|
73
|
+ stack.widthAnchor.constraint(equalTo: panel.widthAnchor, constant: -56),
|
|
|
74
|
+ ])
|
|
|
75
|
+ }
|
|
|
76
|
+
|
|
|
77
|
+ private func makeSection(title: String, card: NSView) -> NSView {
|
|
|
78
|
+ let container = NSStackView()
|
|
|
79
|
+ container.orientation = .vertical
|
|
|
80
|
+ container.alignment = .leading
|
|
|
81
|
+ container.spacing = 12
|
|
|
82
|
+ container.translatesAutoresizingMaskIntoConstraints = false
|
|
|
83
|
+
|
|
|
84
|
+ let label = NSTextField(labelWithString: title)
|
|
|
85
|
+ label.font = AppTheme.semiboldFont(size: 18)
|
|
|
86
|
+ label.textColor = AppTheme.textPrimary
|
|
|
87
|
+ label.translatesAutoresizingMaskIntoConstraints = false
|
|
|
88
|
+
|
|
|
89
|
+ container.addArrangedSubview(label)
|
|
|
90
|
+ container.addArrangedSubview(card)
|
|
|
91
|
+ card.widthAnchor.constraint(equalTo: container.widthAnchor).isActive = true
|
|
|
92
|
+ return container
|
|
|
93
|
+ }
|
|
|
94
|
+
|
|
|
95
|
+ private func makeAppCard() -> NSView {
|
|
|
96
|
+ let card = SettingsGroupCard()
|
|
|
97
|
+
|
|
|
98
|
+ card.addRow(SettingsActionRow(symbolName: "square.and.arrow.up", title: "Share App") {
|
|
|
99
|
+ guard let url = Bundle.main.bundleURL as URL? else { return }
|
|
|
100
|
+ let picker = NSSharingServicePicker(items: [url])
|
|
|
101
|
+ if let view = NSApp.keyWindow?.contentView {
|
|
|
102
|
+ picker.show(relativeTo: .zero, of: view, preferredEdge: .minY)
|
|
|
103
|
+ }
|
|
|
104
|
+ })
|
|
|
105
|
+ card.addRow(SettingsThemeRow())
|
|
|
106
|
+
|
|
|
107
|
+ return card
|
|
|
108
|
+ }
|
|
|
109
|
+
|
|
|
110
|
+ private func makeAboutCard() -> NSView {
|
|
|
111
|
+ let card = SettingsGroupCard()
|
|
|
112
|
+
|
|
|
113
|
+ card.addRow(SettingsActionRow(symbolName: "link", title: "Website") {
|
|
|
114
|
+ NSWorkspace.shared.open(URL(string: "https://example.com")!)
|
|
|
115
|
+ })
|
|
|
116
|
+ card.addRow(SettingsActionRow(symbolName: "questionmark.circle", title: "Support") {
|
|
|
117
|
+ NSWorkspace.shared.open(URL(string: "mailto:support@example.com")!)
|
|
|
118
|
+ })
|
|
|
119
|
+ card.addRow(SettingsActionRow(symbolName: "doc.text", title: "Terms of Use") {
|
|
|
120
|
+ NSWorkspace.shared.open(URL(string: "https://example.com/terms")!)
|
|
|
121
|
+ })
|
|
|
122
|
+ card.addRow(SettingsActionRow(symbolName: "shield", title: "Privacy Policy", isLast: true) {
|
|
|
123
|
+ NSWorkspace.shared.open(URL(string: "https://example.com/privacy")!)
|
|
|
124
|
+ })
|
|
|
125
|
+
|
|
|
126
|
+ return card
|
|
|
127
|
+ }
|
|
|
128
|
+}
|
|
|
129
|
+
|
|
|
130
|
+// MARK: - Panel
|
|
|
131
|
+
|
|
|
132
|
+private final class SettingsPanelView: NSView {
|
|
|
133
|
+ init() {
|
|
|
134
|
+ super.init(frame: .zero)
|
|
|
135
|
+ wantsLayer = true
|
|
|
136
|
+ layer?.backgroundColor = AppTheme.cardBackground.cgColor
|
|
|
137
|
+ layer?.cornerRadius = 22
|
|
|
138
|
+ layer?.borderWidth = 1
|
|
|
139
|
+ layer?.borderColor = NSColor(calibratedWhite: 0.92, alpha: 1).cgColor
|
|
|
140
|
+ applyCardShadow()
|
|
|
141
|
+ }
|
|
|
142
|
+
|
|
|
143
|
+ @available(*, unavailable)
|
|
|
144
|
+ required init?(coder: NSCoder) { nil }
|
|
|
145
|
+}
|
|
|
146
|
+
|
|
|
147
|
+private final class SettingsGroupCard: NSView {
|
|
|
148
|
+ private let stack = NSStackView()
|
|
|
149
|
+
|
|
|
150
|
+ init() {
|
|
|
151
|
+ super.init(frame: .zero)
|
|
|
152
|
+ translatesAutoresizingMaskIntoConstraints = false
|
|
|
153
|
+ wantsLayer = true
|
|
|
154
|
+ layer?.backgroundColor = NSColor.white.cgColor
|
|
|
155
|
+ layer?.cornerRadius = 16
|
|
|
156
|
+ layer?.borderWidth = 1
|
|
|
157
|
+ layer?.borderColor = NSColor(calibratedWhite: 0.93, alpha: 1).cgColor
|
|
|
158
|
+
|
|
|
159
|
+ stack.orientation = .vertical
|
|
|
160
|
+ stack.spacing = 0
|
|
|
161
|
+ stack.translatesAutoresizingMaskIntoConstraints = false
|
|
|
162
|
+ addSubview(stack)
|
|
|
163
|
+
|
|
|
164
|
+ NSLayoutConstraint.activate([
|
|
|
165
|
+ stack.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
|
166
|
+ stack.trailingAnchor.constraint(equalTo: trailingAnchor),
|
|
|
167
|
+ stack.topAnchor.constraint(equalTo: topAnchor),
|
|
|
168
|
+ stack.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
|
169
|
+ ])
|
|
|
170
|
+ }
|
|
|
171
|
+
|
|
|
172
|
+ @available(*, unavailable)
|
|
|
173
|
+ required init?(coder: NSCoder) { nil }
|
|
|
174
|
+
|
|
|
175
|
+ func addRow(_ row: NSView) {
|
|
|
176
|
+ stack.addArrangedSubview(row)
|
|
|
177
|
+ row.widthAnchor.constraint(equalTo: stack.widthAnchor).isActive = true
|
|
|
178
|
+ }
|
|
|
179
|
+}
|
|
|
180
|
+
|
|
|
181
|
+// MARK: - Icon
|
|
|
182
|
+
|
|
|
183
|
+private final class SettingsIconBadge: NSView {
|
|
|
184
|
+ init(symbolName: String) {
|
|
|
185
|
+ super.init(frame: .zero)
|
|
|
186
|
+ translatesAutoresizingMaskIntoConstraints = false
|
|
|
187
|
+ wantsLayer = true
|
|
|
188
|
+ layer?.backgroundColor = AppTheme.blueLight.cgColor
|
|
|
189
|
+ layer?.cornerRadius = 10
|
|
|
190
|
+
|
|
|
191
|
+ let icon = NSImageView()
|
|
|
192
|
+ icon.translatesAutoresizingMaskIntoConstraints = false
|
|
|
193
|
+ if let image = NSImage(systemSymbolName: symbolName, accessibilityDescription: nil) {
|
|
|
194
|
+ let config = NSImage.SymbolConfiguration(pointSize: 15, weight: .medium)
|
|
|
195
|
+ icon.image = image.withSymbolConfiguration(config)
|
|
|
196
|
+ }
|
|
|
197
|
+ icon.contentTintColor = AppTheme.blue
|
|
|
198
|
+ addSubview(icon)
|
|
|
199
|
+
|
|
|
200
|
+ NSLayoutConstraint.activate([
|
|
|
201
|
+ widthAnchor.constraint(equalToConstant: 36),
|
|
|
202
|
+ heightAnchor.constraint(equalToConstant: 36),
|
|
|
203
|
+ icon.centerXAnchor.constraint(equalTo: centerXAnchor),
|
|
|
204
|
+ icon.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
205
|
+ icon.widthAnchor.constraint(equalToConstant: 18),
|
|
|
206
|
+ icon.heightAnchor.constraint(equalToConstant: 18),
|
|
|
207
|
+ ])
|
|
|
208
|
+ }
|
|
|
209
|
+
|
|
|
210
|
+ @available(*, unavailable)
|
|
|
211
|
+ required init?(coder: NSCoder) { nil }
|
|
|
212
|
+}
|
|
|
213
|
+
|
|
|
214
|
+// MARK: - Rows
|
|
|
215
|
+
|
|
|
216
|
+private class SettingsRowBase: NSView {
|
|
|
217
|
+ init(isLast: Bool) {
|
|
|
218
|
+ super.init(frame: .zero)
|
|
|
219
|
+ translatesAutoresizingMaskIntoConstraints = false
|
|
|
220
|
+ heightAnchor.constraint(equalToConstant: 56).isActive = true
|
|
|
221
|
+ if !isLast { addDivider() }
|
|
|
222
|
+ }
|
|
|
223
|
+
|
|
|
224
|
+ @available(*, unavailable)
|
|
|
225
|
+ required init?(coder: NSCoder) { nil }
|
|
|
226
|
+
|
|
|
227
|
+ func addDivider() {
|
|
|
228
|
+ let divider = NSBox()
|
|
|
229
|
+ divider.boxType = .separator
|
|
|
230
|
+ divider.translatesAutoresizingMaskIntoConstraints = false
|
|
|
231
|
+ addSubview(divider)
|
|
|
232
|
+ NSLayoutConstraint.activate([
|
|
|
233
|
+ divider.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 60),
|
|
|
234
|
+ divider.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -16),
|
|
|
235
|
+ divider.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
|
236
|
+ divider.heightAnchor.constraint(equalToConstant: 1),
|
|
|
237
|
+ ])
|
|
|
238
|
+ }
|
|
|
239
|
+
|
|
|
240
|
+ func install(icon symbolName: String, title: String, trailing: NSView) -> NSTextField {
|
|
|
241
|
+ let badge = SettingsIconBadge(symbolName: symbolName)
|
|
|
242
|
+ let titleLabel = NSTextField(labelWithString: title)
|
|
|
243
|
+ titleLabel.font = AppTheme.mediumFont(size: 15)
|
|
|
244
|
+ titleLabel.textColor = AppTheme.textPrimary
|
|
|
245
|
+ titleLabel.translatesAutoresizingMaskIntoConstraints = false
|
|
|
246
|
+ trailing.translatesAutoresizingMaskIntoConstraints = false
|
|
|
247
|
+
|
|
|
248
|
+ addSubview(badge)
|
|
|
249
|
+ addSubview(titleLabel)
|
|
|
250
|
+ addSubview(trailing)
|
|
|
251
|
+
|
|
|
252
|
+ NSLayoutConstraint.activate([
|
|
|
253
|
+ badge.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 14),
|
|
|
254
|
+ badge.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
255
|
+
|
|
|
256
|
+ titleLabel.leadingAnchor.constraint(equalTo: badge.trailingAnchor, constant: 14),
|
|
|
257
|
+ titleLabel.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
258
|
+
|
|
|
259
|
+ trailing.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -16),
|
|
|
260
|
+ trailing.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
261
|
+ titleLabel.trailingAnchor.constraint(lessThanOrEqualTo: trailing.leadingAnchor, constant: -12),
|
|
|
262
|
+ ])
|
|
|
263
|
+
|
|
|
264
|
+ return titleLabel
|
|
|
265
|
+ }
|
|
|
266
|
+}
|
|
|
267
|
+
|
|
|
268
|
+private final class SettingsActionRow: SettingsRowBase {
|
|
|
269
|
+ init(symbolName: String, title: String, isLast: Bool = false, action: @escaping () -> Void) {
|
|
|
270
|
+ super.init(isLast: isLast)
|
|
|
271
|
+
|
|
|
272
|
+ let badge = SettingsIconBadge(symbolName: symbolName)
|
|
|
273
|
+ let titleLabel = NSTextField(labelWithString: title)
|
|
|
274
|
+ titleLabel.font = AppTheme.mediumFont(size: 15)
|
|
|
275
|
+ titleLabel.textColor = AppTheme.textPrimary
|
|
|
276
|
+ titleLabel.translatesAutoresizingMaskIntoConstraints = false
|
|
|
277
|
+
|
|
|
278
|
+ addSubview(badge)
|
|
|
279
|
+ addSubview(titleLabel)
|
|
|
280
|
+
|
|
|
281
|
+ NSLayoutConstraint.activate([
|
|
|
282
|
+ badge.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 14),
|
|
|
283
|
+ badge.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
284
|
+ titleLabel.leadingAnchor.constraint(equalTo: badge.trailingAnchor, constant: 14),
|
|
|
285
|
+ titleLabel.centerYAnchor.constraint(equalTo: centerYAnchor),
|
|
|
286
|
+ titleLabel.trailingAnchor.constraint(lessThanOrEqualTo: trailingAnchor, constant: -16),
|
|
|
287
|
+ ])
|
|
|
288
|
+
|
|
|
289
|
+ let control = LinkControl(onActivate: action)
|
|
|
290
|
+ control.translatesAutoresizingMaskIntoConstraints = false
|
|
|
291
|
+ addSubview(control)
|
|
|
292
|
+ NSLayoutConstraint.activate([
|
|
|
293
|
+ control.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
|
294
|
+ control.trailingAnchor.constraint(equalTo: trailingAnchor),
|
|
|
295
|
+ control.topAnchor.constraint(equalTo: topAnchor),
|
|
|
296
|
+ control.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
|
297
|
+ ])
|
|
|
298
|
+ }
|
|
|
299
|
+
|
|
|
300
|
+ @available(*, unavailable)
|
|
|
301
|
+ required init?(coder: NSCoder) { nil }
|
|
|
302
|
+}
|
|
|
303
|
+
|
|
|
304
|
+private final class SettingsPopupRow: SettingsRowBase {
|
|
|
305
|
+ private let popupTarget: PopupTarget
|
|
|
306
|
+
|
|
|
307
|
+ init(symbolName: String, title: String, options: [String], selection: String, isLast: Bool = false, onChange: @escaping (String) -> Void) {
|
|
|
308
|
+ popupTarget = PopupTarget(handler: onChange)
|
|
|
309
|
+ super.init(isLast: isLast)
|
|
|
310
|
+
|
|
|
311
|
+ let popup = NSPopUpButton()
|
|
|
312
|
+ popup.bezelStyle = .rounded
|
|
|
313
|
+ popup.addItems(withTitles: options)
|
|
|
314
|
+ popup.selectItem(withTitle: selection)
|
|
|
315
|
+ popup.font = AppTheme.regularFont(size: 13)
|
|
|
316
|
+ popup.target = popupTarget
|
|
|
317
|
+ popup.action = #selector(PopupTarget.changed(_:))
|
|
|
318
|
+
|
|
|
319
|
+ _ = install(icon: symbolName, title: title, trailing: popup)
|
|
|
320
|
+ }
|
|
|
321
|
+
|
|
|
322
|
+ @available(*, unavailable)
|
|
|
323
|
+ required init?(coder: NSCoder) { nil }
|
|
|
324
|
+}
|
|
|
325
|
+
|
|
|
326
|
+private final class SettingsThemeRow: SettingsRowBase {
|
|
|
327
|
+ private let segmentTarget: SegmentTarget
|
|
|
328
|
+
|
|
|
329
|
+ init() {
|
|
|
330
|
+ segmentTarget = SegmentTarget()
|
|
|
331
|
+ super.init(isLast: true)
|
|
|
332
|
+
|
|
|
333
|
+ let segment = NSSegmentedControl(labels: AppThemePreference.allCases.map(\.title), trackingMode: .selectOne, target: segmentTarget, action: #selector(SegmentTarget.changed(_:)))
|
|
|
334
|
+ segment.selectedSegment = AppSettings.appTheme.rawValue
|
|
|
335
|
+ segmentTarget.handler = { index in
|
|
|
336
|
+ if let theme = AppThemePreference(rawValue: index) {
|
|
|
337
|
+ AppSettings.appTheme = theme
|
|
|
338
|
+ }
|
|
|
339
|
+ }
|
|
|
340
|
+
|
|
|
341
|
+ _ = install(icon: "circle.lefthalf.filled", title: "Theme", trailing: segment)
|
|
|
342
|
+ }
|
|
|
343
|
+
|
|
|
344
|
+ @available(*, unavailable)
|
|
|
345
|
+ required init?(coder: NSCoder) { nil }
|
|
|
346
|
+}
|
|
|
347
|
+
|
|
|
348
|
+// MARK: - Helpers
|
|
|
349
|
+
|
|
|
350
|
+private final class LinkControl: NSControl {
|
|
|
351
|
+ private let onActivate: () -> Void
|
|
|
352
|
+
|
|
|
353
|
+ init(onActivate: @escaping () -> Void) {
|
|
|
354
|
+ self.onActivate = onActivate
|
|
|
355
|
+ super.init(frame: .zero)
|
|
|
356
|
+ }
|
|
|
357
|
+
|
|
|
358
|
+ @available(*, unavailable)
|
|
|
359
|
+ required init?(coder: NSCoder) { nil }
|
|
|
360
|
+
|
|
|
361
|
+ override func mouseUp(with event: NSEvent) {
|
|
|
362
|
+ guard bounds.contains(convert(event.locationInWindow, from: nil)) else { return }
|
|
|
363
|
+ onActivate()
|
|
|
364
|
+ }
|
|
|
365
|
+
|
|
|
366
|
+ override func resetCursorRects() {
|
|
|
367
|
+ addCursorRect(bounds, cursor: .pointingHand)
|
|
|
368
|
+ }
|
|
|
369
|
+}
|
|
|
370
|
+
|
|
|
371
|
+private final class PopupTarget: NSObject {
|
|
|
372
|
+ private let handler: (String) -> Void
|
|
|
373
|
+
|
|
|
374
|
+ init(handler: @escaping (String) -> Void) {
|
|
|
375
|
+ self.handler = handler
|
|
|
376
|
+ }
|
|
|
377
|
+
|
|
|
378
|
+ @objc func changed(_ sender: NSPopUpButton) {
|
|
|
379
|
+ handler(sender.titleOfSelectedItem ?? "")
|
|
|
380
|
+ }
|
|
|
381
|
+}
|
|
|
382
|
+
|
|
|
383
|
+private final class SegmentTarget: NSObject {
|
|
|
384
|
+ var handler: ((Int) -> Void)?
|
|
|
385
|
+
|
|
|
386
|
+ @objc func changed(_ sender: NSSegmentedControl) {
|
|
|
387
|
+ handler?(sender.selectedSegment)
|
|
|
388
|
+ }
|
|
|
389
|
+}
|
|
|
390
|
+
|
|
|
391
|
+private final class FlippedSettingsDocumentView: NSView {
|
|
|
392
|
+ override var isFlipped: Bool { true }
|
|
|
393
|
+}
|