Created
June 20, 2020 08:34
-
-
Save gahntpo/8dfe2692bbfd52aabde43472dbcbef93 to your computer and use it in GitHub Desktop.
using the call to WindowScene( didUpdate) to access the window size and device orientation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func windowScene(_ windowScene: UIWindowScene, | |
didUpdate previousCoordinateSpace: UICoordinateSpace, | |
interfaceOrientation previousInterfaceOrientation: UIInterfaceOrientation, | |
traitCollection previousTraitCollection: UITraitCollection) { | |
// windowScene.coordinateSpace.bounds | |
// windowScene.interfaceOrientation.isLandscape | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment