This is possible, but the setting is not the ratio to the screen, but the ratio to Superview. UIViewController.view.width Equivalent to screen width.
Because there are a lot of steps, I wrote an article specifically. Storyboard usage tips: Use proportional layout
Select the button and click control to connect to viewController.view, which is the view with the usual screen width
Select
Then click Size inspector->Constraints to find the corresponding item, click Edit, and adjust the multiplier
This is possible, but the setting is not the ratio to the screen, but the ratio to Superview.
UIViewController.view.width
Equivalent to screen width.Because there are a lot of steps, I wrote an article specifically. Storyboard usage tips: Use proportional layout