Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode won't show my textfield placeholder text in storyboard

Tags:

When I assign my textfield's placeholder value in the attributes inspector, it won't show in the storyboard, however, when I run a simulator of the application is is there. Is there a setting I'm missing? I just want to be able to see the placeholder text in the editor. Below is a screenshot of xcode and one of the simulator

xcode

enter image description here

like image 703
Chris Gambrell Avatar asked Dec 08 '17 17:12

Chris Gambrell


People also ask

What is placeholder in Xcode?

The string that displays when there is no other text in the text field.

Is placeholder a SwiftUI?

SwiftUI lets us mark text as a placeholder in our view, meaning that it gets rendered but masked out with gray to show it isn't final content. This is provided through the redacted(reason:) modifier, along with an unredacted() modifier you can use to override redaction as needed.


1 Answers

I am having the same issue, fortunately I run a MacBook with Xcode 9.1(9B55) and an iMac with Xcode 9.2(9C40b)

On my MacBook all placeholders show up but on iMac they don't. So the issue is with xCode 9.2 running High Sierra.

like image 82
Drewgost Avatar answered Sep 18 '22 14:09

Drewgost