FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: expose application orientation by vchimev · Pull Request #7602 · NativeScript/NativeScript · GitHub

feat: expose application orientation - #7602

Merged
vchimev merged 10 commits into
masterfrom
vchimev/orientation
Aug 14, 2019
Merged

vchimev merged 10 commits into
masterfrom
vchimev/orientation

Conversation

vchimev commented Jul 28, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

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 Bot added the cla: yes label Jul 28, 2019
vchimev force-pushed the vchimev/orientation branch 3 times, most recently from e28b712 to 3e7c24a Compare July 29, 2019 06:40
vchimev changed the title feat: expose device orientation feat: expose application UI orientation Jul 30, 2019
vchimev changed the title feat: expose application UI orientation feat: expose application orientation Jul 30, 2019
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 force-pushed the vchimev/orientation branch from 7e4ac06 to f2ab6cb Compare August 13, 2019 14:01
vchimev merged commit e2c3c8c into master Aug 14, 2019
vchimev deleted the vchimev/orientation branch August 14, 2019 10:47
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
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


Back | FazBrowse Home | New Git URL