Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Inconsistency in safe area values for iPhone X (Corona Simulator and Xcode Simulator)
Started by Andriy Pertsov Nov 03 2017 08:14 AM

2 replies to this topic
iphone x safe area
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Andriy Pertsov

[GLOBAL: userInfoPane.html]
Andriy Pertsov
  • Contributor

  • 211 posts
  • Corona SDK

Trying to port our games for iPhone X (and as have no actual device check only in simulator) and they look different in Corona Simulator and Xcode Simulator due to different values returned by these functions:
display.safeScreenOriginX
display.safeScreenOriginY
display.safeActualContentWidth
display.safeActualContentHeight

in Portrait mode:
                                                           Corona Simulator                    Xcode Simulator
display.safeScreenOriginX                      0                                           0
display.safeScreenOriginY                     44                                         132
display.safeActualContentWidth             1125                                      960 
display.safeActualContentHeight             2358                                     1206

in Landscape mode:
                                                           Corona Simulator                    Xcode Simulator
display.safeScreenOriginX                      44                                           132
display.safeScreenOriginY                      0                                             0
display.safeActualContentWidth             1037                                        696
display.safeActualContentHeight             2415                                      1377

Tested on MacOS Sierra 10.12.6, Corona 3168, XCode 9.1 (9B55)

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

Our engineers are aware of this and are working to address it.

 

Rob



[TOPIC: post.html]
#3

Andriy Pertsov

[GLOBAL: userInfoPane.html]
Andriy Pertsov
  • Contributor

  • 211 posts
  • Corona SDK

Great, thank you, Rob.




[topic_controls]
[/topic_controls]