I want to achieve a fully scaled ScreenGui on the iPhoneXR, and all the devices that is doing the same behavior as the image shown above.
The issue is that the ScreenGui is not fully merge with the iPhone XR screen, and I’ve tried scaling it, adding aspectRatio even removing it. And the result is still the same.
Use Scale (0-1) instead of Offset for sizes and positions
Add a UIAspectRatioConstraint to keep proportions consistent
Use UISizeConstraint to set min/max pixel sizes
AutomaticSize on frames can help with dynamic content
For text, TextScaled = true with UITextSizeConstraint ensures readability. Test in Studio’s device emulator (Test → Emulation → pick different devices).
The solution is actually opposite to what you’ve been told here. If you want to remove the empty borders on the sides of the Image, you have to:
Remove any AspectRatioConstraint you may have.
Put the size of the Image {[1, 0,], [1, 0]}, anchor point {[0.5, 0,], [0.5, 0]}, position {[0.5, 0,], [0.5, 0]}.
Change Image ScaleType to Stretch or Crop.
Turn on IgnoreGuiInset on the ScreenGui.
Set ScreenInsets on the ScreenGui to None. (Important)
Above all make sure if you have the ImageLabel inside a Frame in the ScreenGui, then the child of the parent (in this case ImageLabel inside the Frame) is fully sized to the size of its parent and in the center in terms of position (0.5, 0.5 both).