Skip to content

Commit 6f9edf9

Browse files
committed
Removed custom root view
1 parent a84607d commit 6f9edf9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WWDC/DownloadsManagementViewController.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class DownloadsManagementViewController: NSViewController, ObservableObjec
2020
private lazy var hostingView: NSView = NSHostingView(rootView: DownloadManagerView(controller: self).environmentObject(downloadManager))
2121

2222
override func loadView() {
23-
view = DownloadManagementRootView(frame: NSRect(x: 0, y: 0, width: Metrics.defaultWidth, height: Metrics.defaultHeight))
23+
view = NSView(frame: NSRect(x: 0, y: 0, width: Metrics.defaultWidth, height: Metrics.defaultHeight))
2424

2525
hostingView.translatesAutoresizingMaskIntoConstraints = false
2626

@@ -95,8 +95,5 @@ extension DownloadsManagementViewController: NSPopoverDelegate {
9595
func popoverShouldDetach(_ popover: NSPopover) -> Bool {
9696
return true
9797
}
98-
}
9998

100-
private final class DownloadManagementRootView: NSView {
101-
override var mouseDownCanMoveWindow: Bool { true }
10299
}

0 commit comments

Comments
 (0)