Skip to content

Commit 30623a4

Browse files
committed
Windows and Screens: trigger a viewDidLoad in ViewController
When the Window is assigned a `rootViewController`, we should trigger a `viewDidLoad` event.
1 parent ca3d726 commit 30623a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftWin32/Windows and Screens/Window.swift

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class Window: View {
150150
public var rootViewController: ViewController? {
151151
didSet {
152152
self.rootViewController?.view = self
153+
self.rootViewController?.viewDidLoad()
153154

154155
if let builder = _MenuBuilder(for: self) {
155156
self.rootViewController?.buildMenu(with: builder)

0 commit comments

Comments
 (0)