-
Notifications
You must be signed in to change notification settings - Fork 762
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
How can I do the same as the guys of Tripnary? #143
Comments
For an iPhone 5s, I did this:
And it worked great. But obviously this hardcoded code won't work for all devices. I tested with 6 Plus and it didnt work. |
I have the same trouble please help |
I guess the long way to do this is to use UIDevice to get the device type and use a switch statement to handle the different sizes (4", 4.7" and 5.5")? |
I end up using a switch statement on UIScreen.main.bounds.height to support the 3 screen sizes I listed. Here's the code:
667 is for 4.7" and 736 is for 5.5". Your values will probably not match mines exactly but this worked for me. |
Hey all,
Trying to do pretty much the same what the guys at Tripnary did.
My background has the iPhone frame and the ContentView will have the text and image that gets swiped. I need to have the title at the very top of the screen, then the body label after it and lastly, the image. I'd think the image is the icon...
How do I invert those three?
Thanks.
The text was updated successfully, but these errors were encountered: