Iphone 5 layout?


#1

Hi,

I am experimenting with the layouts. How can I get a layout for both iphone 4 and 5. Both are 320 in portrait, but Hype won’t let me make another layout starting with 320.


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

You could use JavaScript to detect the width and height of the screen, and then trigger a separate scene.

You could also make the layout responsive, so it simply shrinks to fit the iPhone 4 / 4S.


(mark) #3

Thats good - but is there an easy way to make text reponsive?


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #4

Using vw instead of px can be used to make the text size change relative to the the β€œviewport” size.

I think that should be an option in Hype. The text boxes don’t have that many styles. Classes, with !important could be used instead though.