#StackBounty: #ios #swift #scale Changing a points actual size globally?

Bounty: 50

Is there a way to globally change the default scale of an iOS app? With "scale" I mean the physical size the points represent if that makes sense. I don’t want to apply any transforms or scaling to a single view, I want it to be applied globally or per-screen basis.

I have tried to modify the nativeScale and scale properties of UIView but it doesn’t seem to be possible.

Example

Default behaviour

By default, a square with width 100 vs width 200 is rendered as follows:


Goal

When specifying width 100, I want the square to be rendered with twice the size (points):

Is there a way to achieve this?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.