Instance Method

present(_:)

Presents a view controller in the dialog controller’s window.

Declaration

func present(_ viewController: NSViewController & GKViewController) -> Bool

Parameters

viewController

A Game Center view controller.

Return Value

true if the view controller was presented, false if an error occurred.

Discussion

The contents of the window are covered by the view controller’s contents until the view controller is dismissed.

See Also

Presenting and Dismissing the Dialog

func dismiss(Any)

Dismisses the currently displayed view controller.