Search code examples
iosuikitmockups

Storyboard dummy values


Is there a way to set dummy values onto my storyboard so I can see what the labels look like in development but not production? Like Android's tools namespace?


Solution

  • The usual thing is to make your view IBDesignable and implement prepareForInterfaceBuilder.

    https://developer.apple.com/documentation/objectivec/nsobject/1402908-prepareforinterfacebuilder