How to change the background color of the storyboard in Xcode?

I work with white text (shortcuts) in Xcode, and currently I do not see them, because the storyboard background is also white. How to change the appearance of the storyboard?

To clarify, I do not want my text to change color, I want to change the appearance of the storyboard so that I can develop more easily.

+6
source share
3 answers

If you are referencing white in your view controller:

  • Choose View
  • Go to the inspector (right panel, 4th element)
  • Change background color (section view)
+14
source

I am not sure that you can do what you are trying to achieve. My best advice for you is to create a dark UIView color that you can place behind a UILabel . Once you are happy, you have the UILabel setup the way you want, you can simply remove the UIView .

+1
source

I have a quick trick. Set the “shadow” color on the attribute inspector for the label to black or any of your actual background colors.

attribute inspector example of how it appears in a storyboard

This will display the text in the storyboard. Hopefully adding the shadow will not be too expensive for your application, and you can take it later.

0
source

Source: https://habr.com/ru/post/915798/


All Articles