Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Sample app is not full screen on iPhone X #76

Closed
AlirezaAkbarix opened this issue Aug 19, 2018 · 9 comments · Fixed by #100
Closed

Sample app is not full screen on iPhone X #76

AlirezaAkbarix opened this issue Aug 19, 2018 · 9 comments · Fixed by #100
Labels
bug Something isn't working

Comments

@AlirezaAkbarix
Copy link

As you can see the height of app is not properly for iPhone X

simulator screen shot - iphone x - 2018-08-19 at 09 06 33

@PMExtra
Copy link

PMExtra commented Aug 19, 2018

This is probably because LaunchImage was not adapt iPhoneX.
It caused the frame of UIWindow being wrong.

@morgandonze
Copy link
Contributor

@AlirezaAkbarix did you find out what the issue was?

@AlirezaAkbarix
Copy link
Author

@mlaco No! actually I found this project very messy and more complex than it should be. So I decided to create my own seed. So didn't check the problem.

@morgandonze
Copy link
Contributor

@AlirezaAkbarix I'm sorry to hear that. We're working on improving this, so please check back again later if you like!

@AlirezaAkbarix
Copy link
Author

@mlaco If you take a look at my activities on ignite boilerplates and issues I've created, you'll find out how eager am I. but I think bowser is a very messy project with some unwanted libs that can't be avoided at initial point! and also take a look at each screen and their related files. Of course typescript is the most important change, but I don't like app styles and code styles. And the last but not least, the commitment of members on project! the last (and the first) release (beta) is on 09 Jul!

@morgandonze
Copy link
Contributor

Thank you, and I do apologize for not noticing your comments elsewhere, I just began working on Ignite.

@AlirezaAkbarix
Copy link
Author

@mlaco Oh these words are my own opinion! not general! and have luck on working on this useful repo :)

@robinheinze
Copy link
Member

robinheinze commented Sep 17, 2018

I believe this is because we're missing iPhoneX slash screen assets

EDIT: I just saw that @PMExtra noticed this as well! Thanks! #76 (comment)

@robertcoopercode
Copy link

Here's the solution I came up with thanks to @PMExtra's suggestion:

  1. Create a new splash screen image with dimensions 1125 x 2436 and place it in ios/AppName/Images.xcassets/LaunchImage.launchimage/. Name it LaunchImage-1125x2436@3x.png.

  2. Add the following block of code to ios/AppName/Images.xcassets/LaunchImage.launchimage/Contents.json in the images array:

	{
      "orientation" : "portrait",
      "idiom" : "iphone",
      "subtype" : "2436h",
      "filename" : "LaunchImage-1125x2436@3x.png",
      "minimum-system-version" : "11.0",
      "extent" : "full-screen",
      "scale" : "3x"
    }
  1. Re-run the app.

Result:

screen shot 2018-09-17 at 8 56 20 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants