Skip to content
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

Fix iPhone X elements that are too close to screen edges #484

Closed
apike opened this issue Oct 21, 2017 · 11 comments
Closed

Fix iPhone X elements that are too close to screen edges #484

apike opened this issue Oct 21, 2017 · 11 comments
Assignees

Comments

@apike
Copy link
Member

apike commented Oct 21, 2017

We should build master on Xcode for the iPhone X simulator, note what issues there are in this issue, and prep a patch.

@abey
Copy link
Contributor

abey commented Oct 23, 2017

iPhone X Simulator Test Run

  • An extension of Issue iOS simulator (at least on MacBook Air) takes very long time to time out traceroute #474, everything on iPhone X Simulator (on MacBook Air) is awfully slow.
  • We may have to shift the views a little higher to prevent UI issues.
    screen shot 2017-10-23 at 10 46 36 am
  • Credits page close button (I don't think we should change this as it doesn't look bad)
    screen shot 2017-10-23 at 10 50 42 am
  • Decrease the size of "Visit cogecopeer1.com" button on About Cogeco Peer 1 page since the lower portion of the letter "g" is not visible.
    screen shot 2017-10-23 at 11 04 05 am

Should I open new issues for any of these @apike?

@abey abey assigned apike and unassigned abey Oct 23, 2017
@apike
Copy link
Member Author

apike commented Oct 23, 2017

Definitely all three of those are too close to the edges, so we'll need to do a pass on this. It looks like the items too close to the bottom would be fine to bump up, but the X button could use a new look/asset that will work both on the X and on other devices, probably by insetting it from the corner, and maybe making it circular. @rachteo can you do a quick pass on that?

@apike apike changed the title Test on and update for iPhone X Fix iPhone X elements that are too close to screen edges Oct 23, 2017
@apike apike assigned rachteo and unassigned apike Oct 23, 2017
@rachteo
Copy link

rachteo commented Oct 27, 2017

Can we bump the menu icons down 40pt and distribute them evenly across the top of the screen? And conversely, bump up the timeline and buttons and things by 40pt

@rachteo
Copy link

rachteo commented Oct 27, 2017

For the close button, I'd suggest just moving it further down so that it's in line with where the menu would be, which is in line with what Apple seems to be doing with their own apps

@apike
Copy link
Member Author

apike commented Oct 27, 2017

Seems reasonable to me - Is 40pt the "safe area margin" that we get from the iOS APIs?

Also, spacing the icons evenly on iPhones seems reasonable, as long as it doesn't look silly on the iPhone Plus.

@ssawchenko ssawchenko self-assigned this Nov 7, 2017
@ssawchenko
Copy link
Contributor

I have applied the safe area constraints to all ViewControllers except CreditsViewController. CreditsViewController does not have a storyboard and setting up the constraints in Objective C is rather verbose. I looked into converting into Swift, however, I ran into a bunch of issues (including a linker error) - if @nbrooke could look into converting CreditsViewController to swift I feel it would a better use of the project hours.

Once again, I have done the iPhoneX conversion on other pages, I just need CreditsViewController converted to swift or converted to use a Storyboard.

@nbrooke
Copy link
Member

nbrooke commented Nov 9, 2017

Did the Swift conversion of CreditsViewController yesterday, it's ready to try as pull request #492

@nbrooke nbrooke removed their assignment Nov 9, 2017
@ssawchenko
Copy link
Contributor

Whoops, I see that PR in my email inbox (sorry!). I'll check it out.

@ssawchenko
Copy link
Contributor

@rachteo

Can we bump the menu icons down 40pt and distribute them evenly across the top of the screen? And conversely, bump up the timeline and buttons and things by 40pt

Do you mean 40pt from the top of the device, or 40pts from the top of iPhoneX's "safe area"? Applying 40pts from the safe area puts the menu here:
image

Adhering to the top of the safe area puts the menu here:
image

@apike
Copy link
Member Author

apike commented Nov 9, 2017

@ssawchenko Definitely the second one :)

@ssawchenko
Copy link
Contributor

I realized after I asked that it was a silly question. I perhaps need another cup of coffee ;)

ssawchenko added a commit that referenced this issue Nov 14, 2017
* Updated Launch, info and main controllers to constraint layouts + safe areas
* Fixed tooltip positioning issue
* Updated CreditsViewController to conform to safe areas
* Removed HelperMethods.deviceIsRetina (was incorrect and not being used)
* Add safe area insets to the size of the node info popup, so the trace route button isn’t under the home indicator on the iPhone X
* Fix crash on pre iOS 11 due to missing safeAreaInsets
* Centred menu loading spinners.
@nbrooke nbrooke closed this as completed Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants