Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /