Skip to content

feat: expose application orientation #7602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Aug 14, 2019
Merged

feat: expose application orientation #7602

merged 10 commits into from
Aug 14, 2019

Conversation

vchimev
Copy link
Contributor

@vchimev vchimev commented Jul 28, 2019

PR Checklist

What is the current behavior?

The application user interface is missing orientation property.
[iOS] UIDevice.currentDevice.orientation is in use.

What is the new behavior?

The application user interface has an orientation property.
[iOS] UIApplication.sharedApplication.statusBarOrientation is in use.

Implements #1437.

@cla-bot cla-bot bot added the cla: yes label Jul 28, 2019
@vchimev vchimev force-pushed the vchimev/orientation branch 3 times, most recently from e28b712 to 3e7c24a Compare July 29, 2019 06:40
@vchimev vchimev changed the title feat: expose device orientation feat: expose application UI orientation Jul 30, 2019
@vchimev vchimev changed the title feat: expose application UI orientation feat: expose application orientation Jul 30, 2019
@vchimev vchimev force-pushed the vchimev/orientation branch from 0b9bd9d to 7e4ac06 Compare August 12, 2019 16:48
BREAKING CHANGES:

In iOS, there are concepts for
device orientation (UIDeviceOrientation) and
interface orientation (UIInterfaceOrientation).

In here, there is no distinct implementation for both orientations.
Currently, it is exposed as an `orientation` property of the device
and takes into account both orientations for iOS.

Deprecate `isLandscape` function as
it does not work properly and
it is not used internally.

Migration steps:

Use `device.orientation` property instead.
Move orientation from device to application.

iOS:
Use `UIApplication.sharedApplication.statusBarOrientation`
instead of `UIDevice.currentDevice.orientation`.

Implements #1437.
Also remove iOS orientation setter.
@vchimev vchimev force-pushed the vchimev/orientation branch from 7e4ac06 to f2ab6cb Compare August 13, 2019 14:01
@vchimev vchimev merged commit e2c3c8c into master Aug 14, 2019
@vchimev vchimev deleted the vchimev/orientation branch August 14, 2019 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants