parentWindow
The window that contains the access point.
Declaration
weak var parentWindow: UIWindow? { get set }weak var parentWindow: NSWindow? { get set }Mentioned in
Discussion
For Mac games, use this property to specify the parent window of the access point. If you don’t specify a parent widow, GameKit tries to add the access point to the app’s main window. For iPadOS and iOS games, and for compatible iPad or iPhone games running in visionOS, GameKit adds the access point to the main window.
If this property is nil for a volumetric visionOS game, the access point doesn’t appear. For an immersive game, it appears below the HUD in front of the person and tracks their head position. If this property is non-nil for a volumetric or immersive game, the access point appears outside of the window in the specified location. For more information, see Configure the access point on visionOS.